]> git.eshelyaron.com Git - emacs.git/commit
Don't unblock SIGCHLD too early.
authorPhilipp Stephani <phst@google.com>
Sat, 9 Jan 2021 20:17:42 +0000 (21:17 +0100)
committerPhilipp Stephani <phst@google.com>
Sat, 9 Jan 2021 20:26:52 +0000 (21:26 +0100)
commit4cebd2ded01f733957919cea9d10a67101cb7a67
tree03d6987b9a16f111409d2cda87d4fb413ad350ca
parentace749f2e3be5b23cf4cd29c702a0e82d4d871c3
Don't unblock SIGCHLD too early.

We first need to register the received process ID so that
'handle_child_signal' checks it.  Otherwise we might never call
'waitpid' for these processes, risking deadlock.

* src/callproc.c (call_process):
* src/process.c (create_process): Don't unblock SIGCHLD before
registering the process ID to wait for.

* src/callproc.c (emacs_spawn): Accept a signal set from the caller.
src/callproc.c
src/lisp.h
src/process.c