Skip to content

Commit

Permalink
pty: remove close call on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
tsl0922 committed Aug 18, 2022
1 parent 6cfd9b2 commit 520ce17
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pty.c
Expand Up @@ -104,9 +104,9 @@ void process_free(pty_process *process) {
if (process->pty != NULL) pClosePseudoConsole(process->pty);
if (process->handle != NULL) CloseHandle(process->handle);
#else
close(process->pty);
uv_thread_join(&process->tid);
#endif
close(process->pty);
if (process->in != NULL) uv_close((uv_handle_t *) process->in, close_cb);
if (process->out != NULL) uv_close((uv_handle_t *) process->out, close_cb);
if (process->argv != NULL) free(process->argv);
Expand Down

0 comments on commit 520ce17

Please sign in to comment.