]> granicus.if.org Git - python/commit
Fix bug #392, reported by Jonathan Giddy <jon@dstc.edu.au>:
authorFred Drake <fdrake@acm.org>
Thu, 6 Jul 2000 19:42:19 +0000 (19:42 +0000)
committerFred Drake <fdrake@acm.org>
Thu, 6 Jul 2000 19:42:19 +0000 (19:42 +0000)
commit49b0c3bafe8fd9818e73e3594e12a749f796eeb2
tree642ca488a109225eda02dfb4ebbee0d179846933
parent589c35bcc7ee2448507cedf303e3b72ede34b6ce
Fix bug #392, reported by Jonathan Giddy <jon@dstc.edu.au>:
In posixmodule.c:posix_fork, the function PyOS_AfterFork is called for
both the parent and the child, despite the docs stating that it should
be called in the new (child) process.

This causes problems in the parent since the forking thread becomes the
main thread according to the signal module.

Calling PyOS_AfterFork() only in the child fixes this.  Changed for both
fork() and forkpty().
Modules/posixmodule.c