This is the mail archive of the
cygwin@sourceware.cygnus.com
mailing list for the Cygwin project.
Re: A non cygwin implementation of fork
- To: gnu-win32 at cygnus dot com
- Subject: Re: A non cygwin implementation of fork
- From: vischne at ibm dot net
- Date: Wed, 12 Nov 1997 14:58:25 GMT
Then there is the following, which looks plausible for some versions of C;
The only question is where does the inline function return to exactly?
#include <stddef.h>
#include <process.h>
unsigned long fork ()
{
/* I'm not sure if this works for all flavors of c: */
return _beginthread(
(_USERENTRY (*)(void *))((void *){return 0L;}),
4096, (void *)NULL);
}
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".