subprocess module

Sebastian "lunar" Wiesner basti.wiesner at gmx.net
Mon Jul 14 14:00:29 EDT 2008


Peter Otten <__peter__ at web.de>:

> - communicate() waits for the subprocess to terminate.
> - stdout.read() is retried if an EINTR occurs (Not sure when this would
> happen).

EINTR happens, if the "read" syscall is interrupted by a signal handler. 
For instance, if a daemon handles SIGUSR to re-read its configuration, and
the user issues SIGUSR in exactly that very moment, the daemon wants to
read from a pipe, the read attempt would fail with EINTR.  Shouldn't happen
that often ...

-- 
Freedom is always the freedom of dissenters.
                                      (Rosa Luxemburg)



More information about the Python-list mailing list