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

This commit is contained in:
Simon Frei 2019-01-31 18:35:20 +01:00 committed by Jakob Borg
parent 7236d56731
commit 5605877625
1 changed files with 1 additions and 1 deletions

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