mirror of
https://github.com/watchexec/watchexec.git
synced 2024-11-13 07:41:11 +01:00
Fix sending SIGKILL by default when restarting processes
This commit is contained in:
parent
9c65e816da
commit
a925cb356a
1 changed files with 6 additions and 2 deletions
|
@ -164,8 +164,12 @@ fn main() {
|
|||
|
||||
if let Some(ref child) = *guard {
|
||||
if args.restart {
|
||||
debug!("Killing child process");
|
||||
child.kill();
|
||||
debug!("Stopping child process");
|
||||
if kill {
|
||||
child.kill();
|
||||
} else {
|
||||
child.terminate();
|
||||
}
|
||||
}
|
||||
|
||||
debug!("Waiting for process to exit...");
|
||||
|
|
Loading…
Reference in a new issue