Message182346
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 |
|
Date |
User |
Action |
Args |
2013-02-18 23:12:53 | jort.bloem | set | recipients:
+ jort.bloem |
2013-02-18 23:12:53 | jort.bloem | set | messageid: <1361229173.49.0.760112952716.issue17230@psf.upfronthosting.co.za> |
2013-02-18 23:12:53 | jort.bloem | link | issue17230 messages |
2013-02-18 23:12:53 | jort.bloem | create | |
|