El día viernes, noviembre 06, 2020 a las 10:02:46a. m. -0800, Ian Zimmerman escribió:
> 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. In my case it seems to be the case that the application servers which are using mutt have set SIGCHLD to SIG_IGN. So, mutt, if it depends on sync waiting for it children, should set it to its needs or handle (like the proposed patch does) the ECHILD situation correctly. matthias -- Matthias Apitz, ✉ g...@unixarea.de, http://www.unixarea.de/ +49-176-38902045 Public GnuPG key: http://www.unixarea.de/key.pub Без книги нет знания, без знания нет коммунизма (Влaдимир Ильич Ленин) Without books no knowledge - without knowledge no communism (Vladimir Ilyich Lenin) Sin libros no hay saber - sin saber no hay comunismo. (Vladimir Ilich Lenin)