From 8ef465d592fada11dab075bb7569239c03e3afa4 Mon Sep 17 00:00:00 2001 From: Anselm R Garbe Date: Sun, 16 Aug 2009 08:18:25 +0100 Subject: applied Jukka's sigchld patch --- dwm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'dwm.c') diff --git a/dwm.c b/dwm.c index 1b30cae1..e2f306c1 100644 --- a/dwm.c +++ b/dwm.c @@ -1429,7 +1429,6 @@ setup(void) { XSetWindowAttributes wa; /* clean up any zombies immediately */ - signal(SIGCHLD, sigchld); sigchld(0); /* init screen */ @@ -1501,8 +1500,9 @@ 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)); - signal(SIGCHLD, sigchld); } void -- cgit v1.2.3