Nmap Development mailing list archives
Re: [PATCH/RFC] add support for systems w/out fork()
From: Mike Frysinger <vapier () gentoo org>
Date: Sat, 25 Jul 2009 03:56:49 -0700
On Monday 20 July 2009 15:10:04 David Fifield wrote:
On Thu, Jul 16, 2009 at 06:52:10PM -0400, Mike Frysinger wrote:Not sure how people wish to handle the -lpthread in Makefile.in. diff --git a/main.cc b/main.cc index 2db1a72..c2ce38f 100644 --- a/main.cc +++ b/main.cc @@ -254,6 +254,9 @@ int main(int argc, char *argv[]) { } else if (*myargv[0] == 'd') { o.debugging++; } else if (strcasecmp(myargv[0], "f") == 0) { +#ifndef HAVE_FORK +# define fork() vfork() +#endif switch((ret = fork())) { case 0: /* Child */ /* My job is as follows:What operating system is this that doesn't have fork?
any OS that lacks a MMU (like no-mmu Linux) -mike _______________________________________________ Sent through the nmap-dev mailing list http://cgi.insecure.org/mailman/listinfo/nmap-dev Archived at http://SecLists.Org
Current thread:
- [PATCH/RFC] add support for systems w/out fork() Mike Frysinger (Jul 17)
- Re: [PATCH/RFC] add support for systems w/out fork() David Fifield (Jul 21)
- Re: [PATCH/RFC] add support for systems w/out fork() Mike Frysinger (Jul 25)
- Re: [PATCH/RFC] add support for systems w/out fork() David Fifield (Jul 21)