Message229825
Example code:
import os
import sys
import threading
def run():
sys.stderr.write("in parent thread\n")
threading.Thread(target=run).start()
pid = os.fork()
if pid:
os.waitpid(pid, 0)
else:
sys.stderr.write("in child\n")
To run: while python3 deadlock.py; do; done
Note: does not reproduce if ran with `python -u` (unbuffered) |
|
Date |
User |
Action |
Args |
2014-10-22 13:59:27 | ionelmc | set | recipients:
+ ionelmc |
2014-10-22 13:59:27 | ionelmc | set | messageid: <1413986367.14.0.352107167307.issue22697@psf.upfronthosting.co.za> |
2014-10-22 13:59:27 | ionelmc | link | issue22697 messages |
2014-10-22 13:59:26 | ionelmc | create | |
|