summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKyle Edwards <kyle.edwards@kitware.com>2019-01-11 21:04:26 (GMT)
committerKyle Edwards <kyle.edwards@kitware.com>2019-01-14 14:53:12 (GMT)
commitee555c2a33258a7b272f049aca369edf4d86fa7c (patch)
tree139ed2509db12d8bcf799d20ea8ee320904a7fc2
parent9e03a63ba8b6b01ffbf5c0ee207c8c0bf040f494 (diff)
downloadCMake-ee555c2a33258a7b272f049aca369edf4d86fa7c.zip
CMake-ee555c2a33258a7b272f049aca369edf4d86fa7c.tar.gz
CMake-ee555c2a33258a7b272f049aca369edf4d86fa7c.tar.bz2
libuv: fix clang scan-build warning
-rw-r--r--Utilities/cmlibuv/src/unix/process.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Utilities/cmlibuv/src/unix/process.c b/Utilities/cmlibuv/src/unix/process.c
index 1bded8d..f2a5065 100644
--- a/Utilities/cmlibuv/src/unix/process.c
+++ b/Utilities/cmlibuv/src/unix/process.c
@@ -334,7 +334,7 @@ static void uv__process_child_init(const uv_process_options_t* options,
use_fd = open("/dev/null", fd == 0 ? O_RDONLY : O_RDWR);
close_fd = use_fd;
- if (use_fd == -1) {
+ if (use_fd < 0) {
uv__write_int(error_fd, UV__ERR(errno));
_exit(127);
}