1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-28 03:27:44 +00:00

kill: change default signal

The default signal is SIGTERM, not SIGKILL.
This commit is contained in:
Nicolas Thery 2021-05-01 08:48:18 +02:00
parent 29103b7ec2
commit 70ab0d01d2

View file

@ -59,7 +59,7 @@ pub fn uumain(args: impl uucore::Args) -> i32 {
return kill(
&matches
.opt_str("signal")
.unwrap_or_else(|| obs_signal.unwrap_or_else(|| "9".to_owned())),
.unwrap_or_else(|| obs_signal.unwrap_or_else(|| "TERM".to_owned())),
matches.free,
)
}