From 152808170e3f54632de5d6375a19776b9d2ae693 Mon Sep 17 00:00:00 2001 From: Stefano Ceccherini Date: Fri, 18 Aug 2006 10:18:10 +0000 Subject: [PATCH] Reverted the previous change git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18536 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/system/libroot/posix/signal/signal.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/system/libroot/posix/signal/signal.c b/src/system/libroot/posix/signal/signal.c index b08050c29e..07dc4cc8ea 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 = 1; + errno = err; return SIG_ERR; }