diff options
| author | Paul Eggert | 2013-06-22 12:01:47 -0700 |
|---|---|---|
| committer | Paul Eggert | 2013-06-22 12:01:47 -0700 |
| commit | 0dfeed58d3244487a545bb4d4e19658eb299937b (patch) | |
| tree | 8d63fe126e9983af886f1a8e3d4bbd5f38282633 /src/sysdep.c | |
| parent | f86852b4a3c34213f93fc5de5cb1632b49962023 (diff) | |
| download | emacs-0dfeed58d3244487a545bb4d4e19658eb299937b.tar.gz emacs-0dfeed58d3244487a545bb4d4e19658eb299937b.zip | |
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.c | 2 |
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) | |||
| 1901 | sigaction (SIGFPE, &action, 0); | 1901 | sigaction (SIGFPE, &action, 0); |
| 1902 | } | 1902 | } |
| 1903 | 1903 | ||
| 1904 | catch_child_signal (); | ||
| 1905 | |||
| 1904 | #ifdef SIGUSR1 | 1906 | #ifdef SIGUSR1 |
| 1905 | add_user_signal (SIGUSR1, "sigusr1"); | 1907 | add_user_signal (SIGUSR1, "sigusr1"); |
| 1906 | #endif | 1908 | #endif |