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 | |
parent | 3f50bbaf51f0cc6e9eebae0161f526324e7a9366 (diff) | |
download | src-5e2e2222aed13580ec1aa86c68997e15a3b85596.tar.gz src-5e2e2222aed13580ec1aa86c68997e15a3b85596.zip |
Don't setup a timeout if we are exiting.
Sponsored by: Fudo Security
Notes
Notes:
svn path=/head/; revision=357140
Diffstat (limited to 'bin')
-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 4507aad99f27..66cf4a947de6 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. |