Ludovic Courtès schreef op zo 15-05-2022 om 22:59 [+0200]:
> How does a basic SIGCHLD handler fare?
> 
>   (sigaction SIGCHLD
>     (lambda _ (false-if-exception (waitpid WAIT_ANY WNOHANG))))

Will we get two SIGCHLD when two subprocesses exit at the same time, or
only a single one? If they are combined to a single SIGCHLD, maybe
'waitpid' needs to be called in a loop so no subprocess is missed. 
Also, I think only the ECHILD system-error and maybe EINTR needs to be
caught here.

Greetings,
Maxime.

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to