diff options
author | Luca Casonato <hello@lcas.dev> | 2021-09-27 12:18:02 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-27 12:18:02 +0200 |
commit | ff3a17b72d7e10db4a0ca68afbf2d40bf280431c (patch) | |
tree | 762956f969098d67acbf1090ca9423113ef500cd /runtime/ops/signal.rs | |
parent | 09646854861b5699716300b4ad95cbb51d5ca62e (diff) |
fix: subprocess kill support on windows (#12134)
Diffstat (limited to 'runtime/ops/signal.rs')
-rw-r--r-- | runtime/ops/signal.rs | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/runtime/ops/signal.rs b/runtime/ops/signal.rs index 60d707027..eef72f511 100644 --- a/runtime/ops/signal.rs +++ b/runtime/ops/signal.rs @@ -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, |