diff options
Diffstat (limited to 'src/w32proc.c')
| -rw-r--r-- | src/w32proc.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/w32proc.c b/src/w32proc.c index 29491931015..7d27172781d 100644 --- a/src/w32proc.c +++ b/src/w32proc.c | |||
| @@ -486,7 +486,8 @@ sys_wait (int *status) | |||
| 486 | { | 486 | { |
| 487 | for (cp = child_procs+(child_proc_count-1); cp >= child_procs; cp--) | 487 | for (cp = child_procs+(child_proc_count-1); cp >= child_procs; cp--) |
| 488 | /* some child_procs might be sockets; ignore them */ | 488 | /* some child_procs might be sockets; ignore them */ |
| 489 | if (CHILD_ACTIVE (cp) && cp->procinfo.hProcess) | 489 | if (CHILD_ACTIVE (cp) && cp->procinfo.hProcess |
| 490 | && (cp->fd < 0 || (fd_info[cp->fd].flags & FILE_AT_EOF) != 0)) | ||
| 490 | { | 491 | { |
| 491 | wait_hnd[nh] = cp->procinfo.hProcess; | 492 | wait_hnd[nh] = cp->procinfo.hProcess; |
| 492 | cps[nh] = cp; | 493 | cps[nh] = cp; |