summaryrefslogtreecommitdiff
path: root/src/callproc.c
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2022-11-02 13:24:26 -0700
committerPaul Eggert <eggert@cs.ucla.edu>2022-11-02 13:25:11 -0700
commit05f5d978ae70c4849a5c47865d62301d27317a8a (patch)
tree73b8cd558c85f42bcf4daf9c7d18e45738d8ed58 /src/callproc.c
parent195f0e00d743e59c2e5ab0a6fa0ac564e6221578 (diff)
downloademacs-05f5d978ae70c4849a5c47865d62301d27317a8a.tar.gz
emacs-05f5d978ae70c4849a5c47865d62301d27317a8a.tar.bz2
emacs-05f5d978ae70c4849a5c47865d62301d27317a8a.zip
Initialize child signal handling before posix_spawn too.
Problem reported by Tino Calancha (Bug#58960). * src/callproc.c (call_process): Initialize SIGCHLD handling before possibly creating a child with emacs_span. This need not be in the critical section that calls emacs_spawn, so do it outside the critical section. * src/process.c (child_signal_init): Now extern.
Diffstat (limited to 'src/callproc.c')
-rw-r--r--src/callproc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/callproc.c b/src/callproc.c
index 4d4b86629cf..f9f840e5440 100644
--- a/src/callproc.c
+++ b/src/callproc.c
@@ -648,6 +648,7 @@ call_process (ptrdiff_t nargs, Lisp_Object *args, int filefd,
#ifndef MSDOS
+ child_signal_init ();
block_input ();
block_child_signal (&oldset);