Skip to content
Myr

fix(terminal): handle SIGHUP signal (#4668)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by LangLangBart · committed by GitHub · parent bc89676 · Browse files · 1 file+1 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:src/terminal.go+1 added-1 removed
5207 unmodified lines
5208 ctx, cancel := context.WithCancel(context.Background())52095210 { // Late initialization5211 intChan := make(chan os.Signal, 1)5212 signal.Notify(intChan, os.Interrupt, syscall.SIGTERM)5212 signal.Notify(intChan, os.Interrupt, syscall.SIGTERM, syscall.SIGHUP)5213 go func() {5214 for {5215 select {5216 case <-ctx.Done():
2225 unmodified lines