A non cygwin implementation of fork

vischne@ibm.net vischne@ibm.net
Wed Nov 12 06:58:00 GMT 1997


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".



More information about the Cygwin mailing list