diff options
Diffstat (limited to 'xe.c')
-rw-r--r-- | xe.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/xe.c b/xe.c index 462b147..728102c 100644 --- a/xe.c +++ b/xe.c @@ -87,11 +87,8 @@ mywait() pid_t pid; pid = wait(&status); - if (pid < 0) { - if (errno == ECHILD) - return 0; - // no other error possible? - } + if (pid < 0) + return !(errno == ECHILD); int i; for (i = 0; i < maxjobs; i++) |