In case of error, errno should be set to a positive value. Yeah, I know,
it's sick. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18534 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -27,7 +27,7 @@ signal(int sig, sig_func_t signalHandler)
|
|||||||
// the current thread (the original is copied into the last param)
|
// the current thread (the original is copied into the last param)
|
||||||
err = sigaction(sig, &newAction, &oldAction);
|
err = sigaction(sig, &newAction, &oldAction);
|
||||||
if (err < B_OK) {
|
if (err < B_OK) {
|
||||||
errno = err;
|
errno = 1;
|
||||||
return SIG_ERR;
|
return SIG_ERR;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user