mirror of
https://github.com/denoland/deno.git
synced 2025-09-26 12:19:12 +00:00
fix: subprocess kill support on windows (#12134)
This commit is contained in:
parent
0964685486
commit
ff3a17b72d
3 changed files with 46 additions and 36 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue