This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author eph ​
Recipients eph ​
Date 2016-01-07.12:43:44
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1452170624.64.0.0901256170606.issue26037@psf.upfronthosting.co.za>
In-reply-to
Content
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)
History
Date User Action Args
2016-01-07 12:43:44eph ​setrecipients: + eph ​
2016-01-07 12:43:44eph ​setmessageid: <1452170624.64.0.0901256170606.issue26037@psf.upfronthosting.co.za>
2016-01-07 12:43:44eph ​linkissue26037 messages
2016-01-07 12:43:44eph ​create