Message182354
I can reproduce the issue using "python test.py|cat". The problem is that sys.stdout is buffered and the buffer is flushed twice: once in the parent, once in the child. Just call sys.stdout.flush() before os.fork() should fix your issue.
I don't think that Python should flush buffers of all streams before fork, so I propose to close this issue. Except if you see something interesting to add to Python documentation. |
|
Date |
User |
Action |
Args |
2013-02-19 00:49:11 | vstinner | set | recipients:
+ vstinner, r.david.murray, jort.bloem |
2013-02-19 00:49:11 | vstinner | set | messageid: <1361234951.2.0.363897679769.issue17230@psf.upfronthosting.co.za> |
2013-02-19 00:49:11 | vstinner | link | issue17230 messages |
2013-02-19 00:49:11 | vstinner | create | |
|