[f21/master 1/2] Wrap interruptible system calls in a loop (#1160041)

Brian C. Lane bcl at redhat.com
Thu Nov 6 01:07:29 UTC 2014


On Tue, Nov 04, 2014 at 11:03:49AM -0500, David Shea wrote:
> Some system calls are interrupted by the receipt of a signal, for us
> most commonly a SIGCHLD caused by a process run from a different thread,
> which causes the call to return -1 and set errno to EINTR, which python
> converts into an OSError. Handle this by retrying the call.

What the heck? So basically system calls aren't thread-safe when using
subprocess in another thread? Seems like something that ought to be
fixed upstream.

Thanks for tracking this down.

-- 
Brian C. Lane | Anaconda Team | IRC: bcl #anaconda | Port Orchard, WA (PST8PDT)


More information about the anaconda-patches mailing list