[477] in Pthreads mailing list archive
Re: Fork bug
daemon@ATHENA.MIT.EDU (Christopher Provenzano)
Thu Oct 24 03:04:26 1996
Reply-To: proven@cygnus.com
To: Neil Radisch <nradisch@duck.com>
Cc: pthreads@MIT.EDU
In-Reply-To: Your message of "Tue, 22 Oct 1996 07:39:31 CDT."
<326cc0a3.duck@duck.com>
Date: Thu, 24 Oct 1996 02:42:37 -0400
From: Christopher Provenzano <proven@proven.org>
> Is there a fix for the fork function? Fork seems to cause my
> application to freak. (There's also a message about a fork
> bug in the bug list archive).
>
Currently the fork() routine sortof works. If you call exec() in the child
immediatly after a fork() (dup() and close() can be placed inbetween the
fork() and exec() call) things should work. This is a non optimal behavior
but this is all POSIX requires.
CAP