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:
@@ -42,7 +42,7 @@ int main()
|
|||||||
return PTS_UNRESOLVED;
|
return PTS_UNRESOLVED;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (sigset(SIGCHLD,SIG_HOLD) != SIG_HOLD) {
|
if (sigset(SIGCHLD,SIG_HOLD) != myhandler) {
|
||||||
perror("Unexpected error while using sigset()");
|
perror("Unexpected error while using sigset()");
|
||||||
return PTS_UNRESOLVED;
|
return PTS_UNRESOLVED;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user