aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/os/fs.c
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2017-03-17 18:11:55 +0100
committerJustin M. Keyes <justinkz@gmail.com>2017-03-17 18:14:24 +0100
commit62e14d65651e1815c108e806377ba25b377bf37c (patch)
tree88b9d51a290024a0a3eb1a0155f2d5db08a2336d /src/nvim/os/fs.c
parent2ea7bfc627e57bc1dfc1a86b66a4be5c7eed2bec (diff)
downloadrneovim-62e14d65651e1815c108e806377ba25b377bf37c.tar.gz
rneovim-62e14d65651e1815c108e806377ba25b377bf37c.tar.bz2
rneovim-62e14d65651e1815c108e806377ba25b377bf37c.zip
os_set_cloexec: Fix condition. #5986
Also: skip Test_undo_del_chars the right way. #6287
Diffstat (limited to 'src/nvim/os/fs.c')
-rw-r--r--src/nvim/os/fs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/os/fs.c b/src/nvim/os/fs.c
index af60e1b7af..2beeae7ec6 100644
--- a/src/nvim/os/fs.c
+++ b/src/nvim/os/fs.c
@@ -406,7 +406,7 @@ int os_set_cloexec(const int fd)
return -1;
}
if ((fdflags & FD_CLOEXEC) == 0
- && fcntl(fd, F_SETFD, fdflags | FD_CLOEXEC) < 0) {
+ && fcntl(fd, F_SETFD, fdflags | FD_CLOEXEC) == -1) {
e = errno;
ELOG("Failed to set CLOEXEC on descriptor %d: %s", fd, strerror(e));
errno = e;