summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorPawel Jakub Dawidek <pjd@FreeBSD.org>2020-01-26 10:54:16 +0000
committerPawel Jakub Dawidek <pjd@FreeBSD.org>2020-01-26 10:54:16 +0000
commit5e2e2222aed13580ec1aa86c68997e15a3b85596 (patch)
treea6b1e3b97094d84caec3ecc00fcd2b090607d11a /bin
parent3f50bbaf51f0cc6e9eebae0161f526324e7a9366 (diff)
downloadsrc-test-5e2e2222aed13580ec1aa86c68997e15a3b85596.tar.gz
src-test-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.c2
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.