Skip to content

Commit fe9fd7f

Browse files
committed
fix(cmd): use os.Kill on Windows since os.Interrupt is unsupported
1 parent c4d81fa commit fe9fd7f

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

internal/cmd/sigwinch_windows.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ var sigWinch os.Signal // nil — no SIGWINCH on Windows; resize uses polling
1111

1212
var errEIO = errors.New("input/output error")
1313

14-
// terminateSignal is the signal sent to gracefully stop the child process.
15-
// On Windows os.Interrupt sends CTRL_BREAK_EVENT to the child.
16-
var terminateSignal os.Signal = os.Interrupt
14+
// terminateSignal is the signal used to stop the child process.
15+
// On Windows os.Interrupt is not supported by os.Process.Signal, so we use
16+
// os.Kill to terminate the process directly.
17+
var terminateSignal os.Signal = os.Kill

0 commit comments

Comments
 (0)