summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJérémie Courrèges-Anglas <jca@wxcvbn.org>2012-12-13 14:27:54 +0100
committerJérémie Courrèges-Anglas <jca@wxcvbn.org>2013-01-20 19:09:06 +0100
commit70ae853c054dd2b1b6cbf2fcffb678331ae3a031 (patch)
tree9e4d91f9b791e3533c484d8e838ba84467584c40
parenta88b2a86adc03916a0859468edf742dbf5140b01 (diff)
downloadratpoison-70ae853c054dd2b1b6cbf2fcffb678331ae3a031.zip
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.
-rw-r--r--src/actions.c2
1 files changed, 1 insertions, 1 deletions
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));