diff --git a/src/system/libroot/posix/signal/signal.c b/src/system/libroot/posix/signal/signal.c index 07dc4cc8ea..b08050c29e 100644 --- a/src/system/libroot/posix/signal/signal.c +++ b/src/system/libroot/posix/signal/signal.c @@ -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; }