revert: "fix(ui_client): check return code of dup()"

This reverts commit c0845343b6.
This commit is contained in:
zeertzjq
2023-04-25 14:04:39 +08:00
committed by GitHub
parent af6669cd35
commit a7578a873c

View File

@@ -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
} }