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:
parent
cb80e931f6
commit
38894ae9a8
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user