diff --git a/usr.bin/time/time.c b/usr.bin/time/time.c index 2bf61d5bbeba..8bbf737f7f16 100644 --- a/usr.bin/time/time.c +++ b/usr.bin/time/time.c @@ -219,7 +219,7 @@ main(argc, argv) ru.ru_nivcsw, "involuntary context switches"); } if (exitonsig) { - if (signal(exitonsig, SIG_DFL) < 0) + if (signal(exitonsig, SIG_DFL) == SIG_ERR) perror("signal"); else kill(getpid(), exitonsig);