diff --git a/bash-5.1/r_execute_cmd/src/lib.rs b/bash-5.1/r_execute_cmd/src/lib.rs index 8279fe5bfd9cd3b68534cdb431d3b60a792f4421..6c4955afda9dbc6b8def7376e3e0a026b6bbfbed 100644 --- a/bash-5.1/r_execute_cmd/src/lib.rs +++ b/bash-5.1/r_execute_cmd/src/lib.rs @@ -5701,8 +5701,27 @@ unsafe extern "C" fn execute_builtin_or_function( return result; } +#[no_mangle] +pub unsafe extern "C" fn setup_async_signals() { + if job_control == 0 { + get_original_signal(SIGINT as libc::c_int); + set_signal_handler( + SIGINT as libc::c_int, + SIG_IGN!()); + get_original_signal(SIGQUIT as libc::c_int); + set_signal_handler( + SIGQUIT as libc::c_int, + SIG_IGN!()); + } +} +#[macro_export] +macro_rules! NOTFOUND_HOOK { + () => { + b"command_not_found_handle\0" as *const u8 as *const libc::c_char + }; +}