Follow-up from microsoft/vscode#248947
I have found that with conptyDll enabled, terminal processes are not killed gracefully - for example, addresses in use remain blocked when I kill a terminal and rerun a server.
|
} else { |
|
// Close the input write handle to signal the end of session. |
|
this._inSocket.destroy(); |
|
(this._ptyNative as IConptyNative).kill(this._pty, this._useConptyDll); |
|
this._outSocket.on('data', () => { |
|
this._conoutSocketWorker.dispose(); |
|
}); |
|
} |
Using taskkill.exe seems to work both for when conptyDll is enabled and disabled
https://github.com/microsoft/vscode/pull/248947/files#diff-7fa6408c8e509843aa68feb54ddc0dc812a3d8cbfc5e6df7e5ed25d90978c082R396-R402
We should consider moving this from vscode into node-pty.
Follow-up from microsoft/vscode#248947
I have found that with
conptyDllenabled, terminal processes are not killed gracefully - for example, addresses in use remain blocked when I kill a terminal and rerun a server.node-pty/src/windowsPtyAgent.ts
Lines 177 to 184 in d738123
Using
taskkill.exeseems to work both for whenconptyDllis enabled and disabledhttps://github.com/microsoft/vscode/pull/248947/files#diff-7fa6408c8e509843aa68feb54ddc0dc812a3d8cbfc5e6df7e5ed25d90978c082R396-R402
We should consider moving this from
vscodeintonode-pty.