diff options
-rw-r--r-- | shell/ash.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/shell/ash.c b/shell/ash.c index b8f75af05..897548f3c 100644 --- a/shell/ash.c +++ b/shell/ash.c | |||
@@ -4825,6 +4825,7 @@ waitproc(int block, int *status) | |||
4825 | return err; | 4825 | return err; |
4826 | #else | 4826 | #else |
4827 | int flags = block == DOWAIT_BLOCK ? 0 : WNOHANG; | 4827 | int flags = block == DOWAIT_BLOCK ? 0 : WNOHANG; |
4828 | *status = 0; | ||
4828 | return waitpid(-1, status, flags); | 4829 | return waitpid(-1, status, flags); |
4829 | #endif | 4830 | #endif |
4830 | } | 4831 | } |