Don't setup a timeout if we are exiting.

Sponsored by:	Fudo Security
This commit is contained in:
Pawel Jakub Dawidek 2020-01-26 10:54:16 +00:00
parent 3f50bbaf51
commit 5e2e2222ae
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=357140

View file

@ -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.