Message257685
I wrote a script to non-blocking reading binary data from stdin like this:
import sys, threading
def _thread():
data = sys.stdin.buffer.readline()
thread = threading.Thread(target=_thread)
thread.daemon = True
thread.start()
and the output is like this:
Fatal Python error: could not acquire lock for <_io.BufferedReader name='<stdin>'> at interpreter shutdown, possibly due to daemon threads
Thread 0x00007faf54ebf700 (most recent call first):
File "pipetcpadapter.py", line 8 in func
File "/usr/lib/python3.5/threading.py", line 862 in run
File "/usr/lib/python3.5/threading.py", line 914 in _bootstrap_inner
File "/usr/lib/python3.5/threading.py", line 882 in _bootstrap
Current thread 0x00007faf566da700 (most recent call first):
Aborted (core dumped) |
|
Date |
User |
Action |
Args |
2016-01-07 12:43:44 | eph | set | recipients:
+ eph |
2016-01-07 12:43:44 | eph | set | messageid: <1452170624.64.0.0901256170606.issue26037@psf.upfronthosting.co.za> |
2016-01-07 12:43:44 | eph | link | issue26037 messages |
2016-01-07 12:43:44 | eph | create | |
|