diff options
Diffstat (limited to 'shell')
| -rw-r--r-- | shell/ash.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/shell/ash.c b/shell/ash.c index 61f10d74e..ab8733729 100644 --- a/shell/ash.c +++ b/shell/ash.c | |||
| @@ -5142,7 +5142,7 @@ waitproc(int block, int *status) | |||
| 5142 | 5142 | ||
| 5143 | return err; | 5143 | return err; |
| 5144 | #else | 5144 | #else |
| 5145 | int flags = block == DOWAIT_BLOCK ? 0 : WNOHANG; | 5145 | int flags = block == DOWAIT_NONBLOCK ? WNOHANG : 0; |
| 5146 | *status = 0; | 5146 | *status = 0; |
| 5147 | return waitpid(-1, status, flags); | 5147 | return waitpid(-1, status, flags); |
| 5148 | #endif | 5148 | #endif |
