mirror of
https://github.com/neovim/neovim.git
synced 2025-10-15 22:36:09 +00:00
os_set_cloexec: Fix condition. #5986
Also: skip Test_undo_del_chars the right way. #6287
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user