Reproduce bug run:
pypy pypy-bug.py
then:
cat output
You will see something like:
(57186, 4, True)(0, 882569408, True)
That is wrong, the tuples with 0 should have False !
Reproduce bug run:
pypy pypy-bug.py
then:
cat output
You will see something like:
(57186, 4, True)(0, 882569408, True)
That is wrong, the tuples with 0 should have False !
| import os | |
| import time | |
| import threading | |
| class Thread(threading.Thread): | |
| daemon = True | |
| def run(self): | |
| while 1: | |
| time.sleep(1) | |
| t = Thread() | |
| t.start() | |
| out = file('output', 'w+b', 0) | |
| pid, fd = os.forkpty() | |
| out.write(`pid, fd, t.is_alive()`) | |