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:
parent
c941d45cd5
commit
08c1246909
@ -27,7 +27,7 @@ signal(int sig, sig_func_t signalHandler)
|
||||
// the current thread (the original is copied into the last param)
|
||||
err = sigaction(sig, &newAction, &oldAction);
|
||||
if (err < B_OK) {
|
||||
errno = err;
|
||||
errno = 1;
|
||||
return SIG_ERR;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user