Skip to content

Commit

Permalink
Tested the PR. Add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
rzhao271 committed Aug 25, 2023
1 parent 81de664 commit 41ec9dc
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/win/conpty.cc
Original file line number Diff line number Diff line change
Expand Up @@ -258,8 +258,9 @@ static void OnProcessExit(uv_async_t *async) {
GetExitCodeProcess(baton->hShell, &exitCode);

// Clean up handles
DisconnectNamedPipe(baton->hIn);
DisconnectNamedPipe(baton->hOut);
// Calling DisconnectNamedPipes here or in PtyKill results in a crash,
// ref https://github.com/microsoft/node-pty/issues/512,
// so we only call CloseHandle for now.
CloseHandle(baton->hIn);
CloseHandle(baton->hOut);

Expand Down

0 comments on commit 41ec9dc

Please sign in to comment.