runtime: Kill outdated daemon with SIGINT, not SIGKILL.

This fixes #652.
This commit is contained in:
Qi Xiao 2018-03-24 15:44:23 +00:00
parent dc0d16e4eb
commit 702edb3d65

View File

@ -206,7 +206,7 @@ func killDaemon(cl *daemon.Client) error {
if err != nil {
return fmt.Errorf("cannot find daemon process (pid=%d): %v", pid, err)
}
return process.Kill()
return process.Signal(os.Interrupt)
}
// CleanupRuntime cleans up the runtime.