Clean up SIGCHLD handling a bit.
authorPaul Eggert <eggert@cs.ucla.edu>
Sat, 22 Jun 2013 19:01:47 +0000 (12:01 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Sat, 22 Jun 2013 19:01:47 +0000 (12:01 -0700)
commit0dfeed58d3244487a545bb4d4e19658eb299937b
tree8d63fe126e9983af886f1a8e3d4bbd5f38282633
parentf86852b4a3c34213f93fc5de5cb1632b49962023
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
src/ChangeLog
src/process.c
src/process.h
src/sysdep.c