diff options
| author | Paul Eggert | 2013-06-23 11:18:47 -0700 |
|---|---|---|
| committer | Paul Eggert | 2013-06-23 11:18:47 -0700 |
| commit | c7041908b82205af2f812f9de782003d975f53da (patch) | |
| tree | 6d0d071cc0cd36cf172a18b92e5b1f41c3299b80 /src/sysdep.c | |
| parent | 18bb9e21f3a95114d34947283e76a973692b526c (diff) | |
| download | emacs-c7041908b82205af2f812f9de782003d975f53da.tar.gz emacs-c7041908b82205af2f812f9de782003d975f53da.zip | |
Try to avoid malloc SEGVs on Cygwin.
* callproc.c, process.h (block_child_signal, unblock_child_signal):
Now extern.
* emacs.c (main): Catch SIGCHLD just before initializing gfilenotify.
* process.c (catch_child_signal): Block SIGCHLD while futzing with
the SIGCHLD handler, since the code is not atomic and (due to glib)
signals may be arriving now.
* sysdep.c (init_signals): Do not catch child signals here;
'main' now does that later, at a safer time.
Fixes: debbugs:14569
Diffstat (limited to 'src/sysdep.c')
| -rw-r--r-- | src/sysdep.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/sysdep.c b/src/sysdep.c index c2769865b5d..1d3e646d359 100644 --- a/src/sysdep.c +++ b/src/sysdep.c | |||
| @@ -1901,8 +1901,6 @@ init_signals (bool dumping) | |||
| 1901 | sigaction (SIGFPE, &action, 0); | 1901 | sigaction (SIGFPE, &action, 0); |
| 1902 | } | 1902 | } |
| 1903 | 1903 | ||
| 1904 | catch_child_signal (); | ||
| 1905 | |||
| 1906 | #ifdef SIGUSR1 | 1904 | #ifdef SIGUSR1 |
| 1907 | add_user_signal (SIGUSR1, "sigusr1"); | 1905 | add_user_signal (SIGUSR1, "sigusr1"); |
| 1908 | #endif | 1906 | #endif |