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 <>
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

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 "", line 8 in func
  File "/usr/lib/python3.5/", line 862 in run
  File "/usr/lib/python3.5/", line 914 in _bootstrap_inner
  File "/usr/lib/python3.5/", line 882 in _bootstrap

Current thread 0x00007faf566da700 (most recent call first):
Aborted (core dumped)
Date User Action Args
2016-01-07 12:43:44eph ​setrecipients: + eph ​
2016-01-07 12:43:44eph ​setmessageid: <>
2016-01-07 12:43:44eph ​linkissue26037 messages
2016-01-07 12:43:44eph ​create