When starting a pty like so:
const terminal = spawn(
command,
(isWindows && options.commandLine) || options.args || [],
options.options || {}
);
terminal.onExit(({ exitCode, signal }) => {
console.log(`terminal:exitCode = ${exitCode}, signal =${signal}`);
and then later doing terminal.kill, I sometimes get terminal:exitCode = undefined, signal =undefined in the log. I belies this should never happen, right?
The problem appears on nodejs 20.18.1 on a windows-2019 github action runner. Locally, it seems to always work.
When starting a pty like so:
and then later doing
terminal.kill, I sometimes getterminal:exitCode = undefined, signal =undefinedin the log. I belies this should never happen, right?The problem appears on nodejs 20.18.1 on a windows-2019 github action runner. Locally, it seems to always work.