In message <cf35773f-600b-44a0-9a5b- de39d2086...@h11g2000yqb.googlegroups.com>, Francesco Bochicchio wrote:
> ... if the thread is waiting for a blocking I/O operation to complete, > like reading from a socket with no data or waiting for a locked resource > (i.e. semaphore) to be unlocked, it will not service the queue and will > not read the 'quit command' (the poison pill), and therefore will not > quit until the blocking I/O terminates (and it could be never). Under Linux systems, threads are little different from processes. In particular, sending a thread/process a signal will cause any blocking I/O operation in progress to abort, either with only some bytes read/written, or if nothing was read/written, with an EINTR error. -- http://mail.python.org/mailman/listinfo/python-list