svn commit: r357140 - head/bin/pwait
Pawel Jakub Dawidek
pjd at FreeBSD.org
Sun Jan 26 10:54:16 UTC 2020
Author: pjd
Date: Sun Jan 26 10:54:16 2020
New Revision: 357140
URL: https://svnweb.freebsd.org/changeset/base/357140
Log:
Don't setup a timeout if we are exiting.
Sponsored by: Fudo Security
Modified:
head/bin/pwait/pwait.c
Modified: head/bin/pwait/pwait.c
==============================================================================
--- head/bin/pwait/pwait.c Sun Jan 26 10:51:57 2020 (r357139)
+++ head/bin/pwait/pwait.c Sun Jan 26 10:54:16 2020 (r357140)
@@ -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.
More information about the svn-src-all
mailing list