]> git.eshelyaron.com Git - emacs.git/commit
Ensure that sentinels are called during 'accept-process-output'.
authorPhilipp Stephani <phst@google.com>
Sun, 17 Jan 2021 13:00:16 +0000 (14:00 +0100)
committerPhilipp Stephani <phst@google.com>
Sun, 17 Jan 2021 13:02:36 +0000 (14:02 +0100)
commit1773679af3241919a85d6174b1554070a63cca79
treecc5d73f8615beaa9e1bbff36b45516c89c9080b5
parent39a65844e8d67b5ca3bb2d179e899ff99cd85618
Ensure that sentinels are called during 'accept-process-output'.

When we're trying to notify a process about a status change, we need
to ignore the SIGCHLD pipe temporarily, otherwise the code would
likely not run into the timeout case that's necessary for a status
change to happen.

* src/process.c (wait_reading_process_output): Ignore the SIGCHLD pipe
when notifying a process about a status change.
* test/src/process-tests.el (process-tests/sentinel-called)
(process-tests/sentinel-with-multiple-processes): New unit tests.
src/process.c
test/src/process-tests.el