fix(terminal): handle SIGHUP signal (#4668)
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

This commit is contained in:
LangLangBart
2026-02-01 11:51:49 +01:00
committed by GitHub
parent bc8967632b
commit 7d9724157c

View File

@@ -5209,7 +5209,7 @@ func (t *Terminal) Loop() error {
{ // Late initialization
intChan := make(chan os.Signal, 1)
signal.Notify(intChan, os.Interrupt, syscall.SIGTERM)
signal.Notify(intChan, os.Interrupt, syscall.SIGTERM, syscall.SIGHUP)
go func() {
for {
select {