diff options
| author | Pawel Jakub Dawidek <pjd@FreeBSD.org> | 2020-01-26 10:54:16 +0000 |
|---|---|---|
| committer | Pawel Jakub Dawidek <pjd@FreeBSD.org> | 2020-01-26 10:54:16 +0000 |
| commit | 5e2e2222aed13580ec1aa86c68997e15a3b85596 (patch) | |
| tree | a6b1e3b97094d84caec3ecc00fcd2b090607d11a /bin/pwait | |
| parent | 3f50bbaf51f0cc6e9eebae0161f526324e7a9366 (diff) | |
Notes
Diffstat (limited to 'bin/pwait')
| -rw-r--r-- | bin/pwait/pwait.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/pwait/pwait.c b/bin/pwait/pwait.c index 4507aad99f275..66cf4a947de61 100644 --- a/bin/pwait/pwait.c +++ b/bin/pwait/pwait.c @@ -150,7 +150,7 @@ main(int argc, char *argv[]) nleft++; } - if (tflag) { + if (nleft > 0 && tflag) { /* * Explicitly detect SIGALRM so that an exit status of 124 * can be returned rather than 142. |
