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

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.