Fixed check. sigset() is supposed to return the previous signal disposition,

respectively SIG_HOLD, if the signal was blocked.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@41727 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Ingo Weinhold 2011-05-25 00:41:57 +00:00
parent cb80e931f6
commit 38894ae9a8

View File

@ -42,7 +42,7 @@ int main()
return PTS_UNRESOLVED;
}
if (sigset(SIGCHLD,SIG_HOLD) != SIG_HOLD) {
if (sigset(SIGCHLD,SIG_HOLD) != myhandler) {
perror("Unexpected error while using sigset()");
return PTS_UNRESOLVED;
}