Skip to content

Commit 44e1350

Browse files
authored
fix: handle SIGHUP in watcher (#2764)
1 parent 2973dd7 commit 44e1350

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

signals.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ const maxInterruptSignals = 3
1515
// time to do cleanup work.
1616
func (e *Executor) InterceptInterruptSignals() {
1717
ch := make(chan os.Signal, maxInterruptSignals)
18-
signal.Notify(ch, os.Interrupt, syscall.SIGTERM)
18+
signal.Notify(ch, os.Interrupt, syscall.SIGTERM, syscall.SIGHUP)
1919

2020
go func() {
2121
for i := range maxInterruptSignals {

0 commit comments

Comments
 (0)