Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
win32.c: rework the waitpid(-1, WNOHANG) fix
Oops! While 08e55ec made waitpid(-1, WNOHANG) not segfault, it introduced another problem: when retry == 1, MsgWaitForMultipleObjects() will sometimes be called with a very large timeout due to unsigned integer overflow. This is *exactly* the same problem that the comment above the loop warns about.
- Loading branch information
1 parent
924b0bf
commit 81295a4
Showing
1 changed file
with
7 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters