Files
paseo/packages
paseo-bot[bot] 269fa33491 Close terminal programs on Windows when Restart and close terminals runs (#11398)
* fix(terminal): kill the program tree first on Windows in killAndWait

On Windows, node-pty's kill closes the pseudoconsole at once and kills
the console's processes only after a forked helper reports them.
Closing the pseudoconsole closes the output pipe, and node-pty reports
that as the program's exit. killAndWait therefore saw an exit inside
its graceful wait and skipped the force step added in #11147. The
terminal worker exits right after killAndWait during shutdown, so the
helper's kill never ran and the program kept running after "Restart
and close terminals".

On Windows, killAndWait now kills the program's process tree before it
closes the console. Windows has no graceful signal, and node-pty's own
kill was already TerminateProcess, so no graceful step is lost.

Refs #11134

* test(terminal): end the program before the caller of killAndWait exits

---------

Co-authored-by: paseo-bot[bot] <266920839+paseo-bot[bot]@users.noreply.github.com>
2026-11-30 09:27:42 +00:00
..