Skip to content

Commit

Permalink
winconpty: close the pty host handle after terminating it
Browse files Browse the repository at this point in the history
Closes #8706
  • Loading branch information
DHowett committed Jan 5, 2021
1 parent f087d03 commit 374e4ce
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/winconpty/winconpty.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,7 @@ void _ClosePseudoConsoleMembers(_In_ PseudoConsole* pPty)
}

TerminateProcess(pPty->hConPtyProcess, 0);
CloseHandle(pPty->hConPtyProcess);
pPty->hConPtyProcess = nullptr;
}
// Then take care of the reference handle.
Expand Down

0 comments on commit 374e4ce

Please sign in to comment.