]> git.eshelyaron.com Git - emacs.git/commit
A more-conservative workaround for Cygwin SIGCHLD issues.
authorPaul Eggert <eggert@cs.ucla.edu>
Mon, 24 Jun 2013 00:31:31 +0000 (17:31 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Mon, 24 Jun 2013 00:31:31 +0000 (17:31 -0700)
commitfa55d2aaa23d5916b87a6980c9606466e07df124
tree673a2d3e86802766c2183a8d6f5744722fd73737
parent5e400cb3ed7b0ffc5f166e4cd9c4e18f4e58c14e
A more-conservative workaround for Cygwin SIGCHLD issues.

* callproc.c (Fcall_process):
* process.c (create_process):
Make sure SIGCHLD is caught before we fork,
since Emacs startup no arranges to catch SIGCHLD.
* process.c (lib_child_handler): Initialize to null, not to
dummy_handler.
(catch_child_signal): Allow self to be called lazily.
Do nothing if it's already been called.
Assume caller has blocked SIGCHLD (all callers do now).
* emacs.c (main): Do not catch SIGCHLD here; defer it until
just before it's really needed.
* nsterm.m (ns_term_init): No need to re-catch SIGCHLD here,
since it hasn't been caught yet.

Fixes: debbugs:14569
src/ChangeLog
src/callproc.c
src/emacs.c
src/nsterm.m
src/process.c