dwm
dynamic window manager
git clone https://9o.is/git/dwm.git
commit 3c43bd1c775bf1f9093bb979689d4c14132e92bc parent 7aaac398b371885c8a892865e4d5076303e177f1 Author: Hiltjo Posthuma <hiltjo@codemadness.org> Date: Fri, 22 Jul 2022 09:18:52 +0200 Revert "do not call signal-unsafe function inside sighanlder" This reverts commit 7aaac398b371885c8a892865e4d5076303e177f1. Discussed on the mailinglist: https://lists.suckless.org/hackers/2207/18405.html Diffstat:
| M | dwm.c | | | 4 | ++-- |
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/dwm.c b/dwm.c @@ -1541,8 +1541,6 @@ setup(void) Atom utf8string; /* clean up any zombies immediately */ - if (signal(SIGCHLD, sigchld) == SIG_ERR) - die("can't install SIGCHLD handler:"); sigchld(0); /* init screen */ @@ -1640,6 +1638,8 @@ showhide(Client *c) void sigchld(int unused) { + if (signal(SIGCHLD, sigchld) == SIG_ERR) + die("can't install SIGCHLD handler:"); while (0 < waitpid(-1, NULL, WNOHANG)); }