New submission from jort bloem: 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 ---------- components: None messages: 182346 nosy: jort.bloem priority: normal severity: normal status: open title: when forking without tty, code is run from start type: behavior versions: Python 2.6, Python 2.7 _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue17230> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com