fix: subprocess kill support on windows (#12134)

This commit is contained in:
Luca Casonato 2021-09-27 12:18:02 +02:00 committed by GitHub
parent 0964685486
commit ff3a17b72d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 46 additions and 36 deletions

View file

@ -169,15 +169,10 @@ pub fn signal_str_to_int(s: &str) -> Result<libc::c_int, AnyError> {
"SIGINFO" => Ok(29),
"SIGUSR1" => Ok(30),
"SIGUSR2" => Ok(31),
_ => Err(type_error(format!("Invalid signal : {}", s))),
_ => Err(type_error(format!("Invalid signal: {}", s))),
}
}
#[cfg(target_os = "windows")]
pub fn signal_str_to_int(_s: &str) -> Result<libc::c_int, AnyError> {
Err(generic_error("not implemented"))
}
#[cfg(unix)]
fn op_signal_bind(
state: &mut OpState,