mirror of
https://github.com/go-sylixos/elvish.git
synced 2024-12-01 08:42:55 +08:00
runtime: Kill outdated daemon with SIGINT, not SIGKILL.
This fixes #652.
This commit is contained in:
parent
dc0d16e4eb
commit
702edb3d65
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue
Block a user