[PATCH] linux: Fallback to fork and exec for clone fail on posix_spawn (BZ#29115)

Alexey Izbyshev izbyshev@ispras.ru
Mon May 2 19:37:22 GMT 2022


On 2022-05-02 22:30, Florian Weimer wrote:
> * Alexey Izbyshev:
> 
>>> +      while (__write_nocancel (args->pipe[1], &ret, sizeof (ret)) <
>>> 0);
>> 
>> If the parent is killed, write() will fail with EPIPE, so this loop
>> will become infinite. Maybe check for EPIPE and break?
> 
> I think we also need to do something to avoid invoking a signal handler
> for SIGPIPE here.
> 
All signal handlers are reset in the beginning of __spawni_child().

Alexey


More information about the Libc-alpha mailing list