]> granicus.if.org Git - python/commit
Fix posix.fork1() / os.fork1() to only call PyOS_AfterFork() in the child
authorGregory P. Smith <greg@mad-scientist.com>
Mon, 14 Jul 2008 06:06:48 +0000 (06:06 +0000)
committerGregory P. Smith <greg@mad-scientist.com>
Mon, 14 Jul 2008 06:06:48 +0000 (06:06 +0000)
commitfb7a50fbb9d4728909382ba7f9eb65f2c0ab2d79
tree866d7f75ae2726e6ed468326858db91b08c02045
parent4ec0c27eea99ebeb20042d2cc61c5dfa29e4b043
Fix posix.fork1() / os.fork1() to only call PyOS_AfterFork() in the child
process rather than both parent and child.

Does anyone actually use fork1()?  It appears to be a Solaris thing
but if Python is built with pthreads on Solaris, fork1() and fork()
should be the same.
Modules/posixmodule.c