summaryrefslogtreecommitdiffstats
path: root/Utilities/cmlibuv/src/unix/signal.c
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2018-05-07 15:48:01 (GMT)
committerBrad King <brad.king@kitware.com>2018-05-07 15:48:01 (GMT)
commit42fbb285161a7424116a1e838b29741864ab3691 (patch)
tree858d1d7aa84098ce326d32c41da9047d9cd95064 /Utilities/cmlibuv/src/unix/signal.c
parentdd3e1a737216b7c9bfb6c7569685b36a1bff9cba (diff)
parentc8b67ea119c4000018238f6c3201a1364356d93a (diff)
downloadCMake-42fbb285161a7424116a1e838b29741864ab3691.zip
CMake-42fbb285161a7424116a1e838b29741864ab3691.tar.gz
CMake-42fbb285161a7424116a1e838b29741864ab3691.tar.bz2
Merge branch 'upstream-libuv' into update-libuv
* upstream-libuv: libuv 2018-05-06 (bf605bd7)
Diffstat (limited to 'Utilities/cmlibuv/src/unix/signal.c')
-rw-r--r--Utilities/cmlibuv/src/unix/signal.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Utilities/cmlibuv/src/unix/signal.c b/Utilities/cmlibuv/src/unix/signal.c
index 3759778..b9d0a56 100644
--- a/Utilities/cmlibuv/src/unix/signal.c
+++ b/Utilities/cmlibuv/src/unix/signal.c
@@ -225,7 +225,7 @@ static int uv__signal_register_handler(int signum, int oneshot) {
/* XXX save old action so we can restore it later on? */
if (sigaction(signum, &sa, NULL))
- return -errno;
+ return UV__ERR(errno);
return 0;
}
@@ -362,7 +362,7 @@ static int uv__signal_start(uv_signal_t* handle,
* eventually.
*/
if (signum == 0)
- return -EINVAL;
+ return UV_EINVAL;
/* Short circuit: if the signal watcher is already watching {signum} don't
* go through the process of deregistering and registering the handler.