IOError: [Errno 4] Interrupted system call

A Meowbot meowbot at meowing.net
Sat Feb 9 02:47:22 EST 2002


Greg Weeks wrote:
> In Python 1.5.2, I'm getting the message
> 
>     IOError: [Errno 4] Interrupted system call
> 
> in a context that doesn't make sense to me.  My program has two threads
> (which won't appear useful out of context):
> 
> Thread 1: Fork a subprocess, wait for the subprocess to exit, and set
> an Event.
> 
> Thread 2: Send a SIGTERM signal to the subprocess and wait for the Event to
> be set.

[...]

You may be getting tripped up by the SIGCHLD generated by the terminated 
subprocess.  How are you trying to collect that zombie in thread 1?



More information about the Python-list mailing list