summaryrefslogtreecommitdiff
path: root/src/sysdep.c
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2013-06-22 12:01:47 -0700
committerPaul Eggert <eggert@cs.ucla.edu>2013-06-22 12:01:47 -0700
commit0dfeed58d3244487a545bb4d4e19658eb299937b (patch)
tree8d63fe126e9983af886f1a8e3d4bbd5f38282633 /src/sysdep.c
parentf86852b4a3c34213f93fc5de5cb1632b49962023 (diff)
downloademacs-0dfeed58d3244487a545bb4d4e19658eb299937b.tar.gz
Clean up SIGCHLD handling a bit.
* process.c, process.h (catch_child_signal): Now always extern, even if !NS_IMPL_GNUSTEP. * process.c (catch_child_signal): Move glib tickler here from init_process_emacs, so that it's done earlier in Emacs initialization. Also move the noninteractive && !initialized check here from init_process_emacs. This is all a bit cleaner for GNUish platforms, and I hope it works around the Cygwin bug. * sysdep.c (init_signals): Invoke catch_child_signal here, so that glib signal handling is tickled before glib creates threads. Fixes: debbugs:14569
Diffstat (limited to 'src/sysdep.c')
-rw-r--r--src/sysdep.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/sysdep.c b/src/sysdep.c
index 1d3e646d359..c2769865b5d 100644
--- a/src/sysdep.c
+++ b/src/sysdep.c
@@ -1901,6 +1901,8 @@ init_signals (bool dumping)
sigaction (SIGFPE, &action, 0);
}
+ catch_child_signal ();
+
#ifdef SIGUSR1
add_user_signal (SIGUSR1, "sigusr1");
#endif