cmd/syncthing: Pass SIGTERM on in monitor (fixes #5493) (#5494)

This commit is contained in:
Simon Frei authored and Jakob Borg committed 2019-01-31 18:35:20 +01:00
1 parent 7236d56731
commit 5605877625
1 file changed
+1 -1
+1 -1
View File
@@ -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