mirror of
https://github.com/neovim/neovim.git
synced 2025-09-06 03:18:16 +00:00
revert: "fix(ui_client): check return code of dup()"
This reverts commit c0845343b6
.
This commit is contained in:
@@ -65,11 +65,7 @@ uint64_t ui_client_start_server(int argc, char **argv)
|
|||||||
#ifdef MSWIN
|
#ifdef MSWIN
|
||||||
os_open_conin_fd();
|
os_open_conin_fd();
|
||||||
#else
|
#else
|
||||||
int fd = dup(stderr_isatty ? STDERR_FILENO : STDOUT_FILENO);
|
dup(stderr_isatty ? STDERR_FILENO : STDOUT_FILENO);
|
||||||
if (fd < 0) {
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
// FIXME: resource leak of fd
|
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user