[hackers] Re: [dwm][PATCH] Use sigaction(SA_NOCLDWAIT) for SIGCHLD handling

From: Chris Down <chris_AT_chrisdown.name>
Date: Wed, 27 Jul 2022 06:54:34 +0100

NRK writes:
>It sets up the sighandler and then immediately calls `sigchld`. So it
>seems like the intention was to *actaully* reap some zombies and not
>just setup the sighandler.

Ah, I see. This[0] is the thread that it comes from, and it mentions zombies
from .Xsession or similar on exec. I suppose it could theoretically happen in a
very small window between the shell doing its job and dwm taking over.

Ok, I'll reap before doing this for v2.

0: https://lists.suckless.org/dev/0908/0774.html
Received on Wed Jul 27 2022 - 07:54:34 CEST

This archive was generated by hypermail 2.3.0 : Wed Jul 27 2022 - 08:12:31 CEST