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

kill: adding support for handling SIGEXIT (#6269)

kill: convert SIGEXT (0) to None so nix takes correct action
This commit is contained in:
Darius Carrier 2024-04-27 08:33:45 -07:00 committed by GitHub
parent 65b25c7a27
commit 5ee9c69f59
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 25 additions and 5 deletions

View file

@ -288,3 +288,13 @@ fn test_kill_no_pid_provided() {
.fails()
.stderr_contains("no process ID specified");
}
#[test]
fn test_kill_with_signal_exit_new_form() {
let target = Target::new();
new_ucmd!()
.arg("-s")
.arg("EXIT")
.arg(format!("{}", target.pid()))
.succeeds();
}