Files
fzf/src
PJ Eby fff7eda9d7
Some checks failed
CodeQL / Analyze (go) (push) Has been cancelled
build / build (push) Has been cancelled
Test fzf on macOS / build (push) Has been cancelled
Terminate child processes on Windows (#4723)
Windows doesn't have signals, the default Kill doesn't actually kill
anything, and other forms of termination don't allow cleanup. So we
spawn preview processes in a new process group and send them a
CTRL_BREAK_EVENT to terminate.

However, we only do this for "pwsh" (PowerShell 7+) and unknown/
posix-ish shells, because cmd.exe and Windows PowerShell
("powershell.exe") don't always exit on Ctrl-Break. pwsh also needs
the -NonInteractive flag to exit on Ctrl-Break.

If the process wasn't given its own group, or if sending the console
control event fails, we fall back to the standard Kill (which likely
won't help, but doesn't hurt to try).

Fix #3134
2026-03-29 12:40:24 +09:00
..
2025-11-12 22:05:17 +09:00
2025-11-12 22:05:17 +09:00
2023-07-16 17:14:22 +09:00
2016-08-19 02:39:32 +09:00
2026-02-19 00:20:09 +09:00
2026-02-19 21:30:23 +09:00
2024-09-29 19:33:42 +09:00
2024-09-29 19:33:42 +09:00
2024-11-03 20:12:47 +09:00
2024-08-29 16:41:52 +09:00
2024-08-29 16:41:52 +09:00