mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-02-24 05:47:36 +00:00
Avoid aborting in 'waitpid' on MS-Windows
* src/w32proc.c (waitpid): Don't allow quitting if called with WNOHANG in OPTIONS. (Bug#28268)
This commit is contained in:
parent
b65cb981cc
commit
bf0045d7a4
1 changed files with 5 additions and 1 deletions
|
|
@ -1449,7 +1449,11 @@ waitpid (pid_t pid, int *status, int options)
|
|||
|
||||
do
|
||||
{
|
||||
maybe_quit ();
|
||||
/* When child_status_changed calls us with WNOHANG in OPTIONS,
|
||||
we are supposed to be non-interruptible, so don't allow
|
||||
quitting in that case. */
|
||||
if (!dont_wait)
|
||||
maybe_quit ();
|
||||
active = WaitForMultipleObjects (nh, wait_hnd, FALSE, timeout_ms);
|
||||
} while (active == WAIT_TIMEOUT && !dont_wait);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue