]> git.eshelyaron.com Git - emacs.git/commit
Try to avoid malloc SEGVs on Cygwin.
authorPaul Eggert <eggert@cs.ucla.edu>
Sun, 23 Jun 2013 18:18:47 +0000 (11:18 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Sun, 23 Jun 2013 18:18:47 +0000 (11:18 -0700)
commitc7041908b82205af2f812f9de782003d975f53da
tree6d0d071cc0cd36cf172a18b92e5b1f41c3299b80
parent18bb9e21f3a95114d34947283e76a973692b526c
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
src/ChangeLog
src/callproc.c
src/emacs.c
src/process.c
src/process.h
src/sysdep.c