* src/w32proc.c (waitpid): Don't allow quitting if called with
WNOHANG in OPTIONS. (Bug#28268)
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);