Subject: Re: A non cygwin implementation of fork
From: [email-masked]

12 Nov 1997 07:08:44 -0800
Message-ID: <[email-masked]>
Mime-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
To: [email-masked]

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
"[email-masked]" with one line of text: "help".