Fix one warning - still not warns clean.

This commit is contained in:
David Malone 2001-12-03 21:32:01 +00:00
parent 47e68d542a
commit 0050672a16

View File

@ -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);