On 2020-11-06 08:25, Matthias Apitz wrote:

> See also man page of wait(2): the errno=ECHILD:

>        ECHILD (for waitpid() or waitid()) The process specified by pid
>        (waitpid()) or idtype and id (waitid()) does not exist or is
>        not a child of the calling process.  (This can happen for one's
>        own child if the action for SIGCHLD is set to SIG_IGN.  See
>        also the Linux Notes section about threads.)

So, does mutt set SIG_IGN for SIGCHLD? Maybe it should not, or maybe it
should temporarily restore it in places like this where it synchronously
waits for a child. That seems like a cleaner solution than the proposed
patch.

-- 
Ian

Reply via email to