From 560587762558a8fe74e58565c7d03f3a91db5086 Mon Sep 17 00:00:00 2001 From: Simon Frei Date: Thu, 31 Jan 2019 18:35:20 +0100 Subject: [PATCH] cmd/syncthing: Pass SIGTERM on in monitor (fixes #5493) (#5494) --- cmd/syncthing/monitor.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/syncthing/monitor.go b/cmd/syncthing/monitor.go index a2d17d05..d57811a1 100644 --- a/cmd/syncthing/monitor.go +++ b/cmd/syncthing/monitor.go @@ -127,7 +127,7 @@ func monitorMain(runtimeOptions RuntimeOptions) { select { case s := <-stopSign: l.Infof("Signal %d received; exiting", s) - cmd.Process.Kill() + cmd.Process.Signal(sigTerm) <-exit return