Fix one warning - still not warns clean.
This commit is contained in:
parent
47e68d542a
commit
0050672a16
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user