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:
Stefano Ceccherini 2006-08-18 09:40:12 +00:00
parent c941d45cd5
commit 08c1246909

View File

@ -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;
}