projects
/
suckless
/
dwm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6613d9f
)
Revert "do not call signal-unsafe function inside sighanlder"
author
Hiltjo Posthuma
<hiltjo@codemadness.org>
Fri, 22 Jul 2022 07:18:52 +0000
(09:18 +0200)
committer
Hiltjo Posthuma
<hiltjo@codemadness.org>
Fri, 22 Jul 2022 07:18:52 +0000
(09:18 +0200)
This reverts commit
6613d9f9a1a5630bab30bc2b70bdc793977073ee
.
Discussed on the mailinglist:
https://lists.suckless.org/hackers/2207/18405.html
dwm.c
patch
|
blob
|
history
diff --git
a/dwm.c
b/dwm.c
index 7c0f9781d44c2db907f059813fbb826b1125da57..b3c43eeb23a693a4e734a945cdf3aa31a6d51b86 100644
(file)
--- 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));
}