Skip to content

Commit d8b34a0

Browse files
authored
signals: Listen to SIGHUP like foreman (#33)
1 parent 580abe5 commit d8b34a0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hivemind.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ func (h *hivemind) Run() {
103103
h.done = make(chan bool, len(h.procs))
104104

105105
h.interrupted = make(chan os.Signal)
106-
signal.Notify(h.interrupted, syscall.SIGINT, syscall.SIGTERM)
106+
signal.Notify(h.interrupted, syscall.SIGINT, syscall.SIGTERM, syscall.SIGHUP)
107107

108108
for _, proc := range h.procs {
109109
h.runProcess(proc)

0 commit comments

Comments
 (0)