Revert "Proper signal handling in monitor process"

This reverts commit 33e9a88b56.
This commit is contained in:
Jakob Borg
2014-09-06 06:49:51 +02:00
parent 97cb3fa5a5
commit 5b51f4d058
4 changed files with 12 additions and 39 deletions
+1 -6
View File
@@ -19,7 +19,6 @@ import (
"os"
"os/exec"
"path/filepath"
"runtime"
"time"
)
@@ -55,11 +54,7 @@ func (p *syncthingProcess) start() error {
}
func (p *syncthingProcess) stop() {
if runtime.GOOS != "windows" {
p.cmd.Process.Signal(os.Interrupt)
} else {
p.cmd.Process.Kill()
}
p.cmd.Process.Kill()
p.cmd.Wait()
}