This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author jort.bloem
Recipients jort.bloem
Date 2013-02-18.23:12:53
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1361229173.49.0.760112952716.issue17230@psf.upfronthosting.co.za>
In-reply-to
Content
When calling os.fork() without a tty, a process reporting the parent's pid runs code BEFORE the fork().

When running on a tty, it behaves as expected: both parent and child continue running from statement immediately after os.fork()

See attached test.py, compare running it with tty vs. without.

to run without tty: ssh localhost `pwd`/test.py
History
Date User Action Args
2013-02-18 23:12:53jort.bloemsetrecipients: + jort.bloem
2013-02-18 23:12:53jort.bloemsetmessageid: <1361229173.49.0.760112952716.issue17230@psf.upfronthosting.co.za>
2013-02-18 23:12:53jort.bloemlinkissue17230 messages
2013-02-18 23:12:53jort.bloemcreate