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