From 70ae853c054dd2b1b6cbf2fcffb678331ae3a031 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9mie=20Courr=C3=A8ges-Anglas?= Date: Thu, 13 Dec 2012 14:27:54 +0100 Subject: tmpwm fix: SIG_IGN -> SIG_DFL for waitpid(SIGCHLD, SIG_IGN) behaves wildly differently across OSes. Fixes tmpwm hanging after child wm exits on OpenBSD. --- src/actions.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/actions.c') diff --git a/src/actions.c b/src/actions.c index cc736dd..912f0a8 100644 --- a/src/actions.c +++ b/src/actions.c @@ -4775,7 +4775,7 @@ cmd_tmpwm (int interactive UNUSED, struct cmdarg **args) XSync (dpy, False); /* Disable our SIGCHLD handler */ - set_sig_handler (SIGCHLD, SIG_IGN); + set_sig_handler (SIGCHLD, SIG_DFL); /* Launch the new WM and wait for it to terminate. */ pid = spawn (ARG_STRING(0), 0, NULL); PRINT_DEBUG (("spawn pid: %d\n", pid)); -- cgit v1.2.3