From 71543919da40e05640f8069d7c22c5bab85d8201 Mon Sep 17 00:00:00 2001 From: Romain Malmain Date: Mon, 24 Jun 2024 17:20:57 +0200 Subject: [PATCH] aaa --- libafl/src/events/mod.rs | 19 +++++-------------- 1 file changed, 5 insertions(+), 14 deletions(-) diff --git a/libafl/src/events/mod.rs b/libafl/src/events/mod.rs index cbb9d6e539..23b4e39f6b 100644 --- a/libafl/src/events/mod.rs +++ b/libafl/src/events/mod.rs @@ -94,27 +94,18 @@ impl Handler for ShutdownSignalData { _info: &mut siginfo_t, _context: Option<&mut ucontext_t>, ) { - // println!("in handler! {}", std::process::id()); unsafe { - // println!("Exiting from the handler...."); - #[cfg(feature = "dump_state")] { // fuzzer will exit at the end of fuzzing run. INTERRUPT_FUZZER = true; } - #[cfg(not(feature = "dump_state"))] - { - #[cfg(unix)] - { - libc::_exit(CTRL_C_EXIT); - } - { - #[cfg(windows)] - windows::Win32::System::Threading::ExitProcess(100); - } - } + #[cfg(all(unix, not(feature = "dump_state")))] + libc::_exit(CTRL_C_EXIT); + + #[cfg(all(windows, not(feature = "dump_state")))] + windows::Win32::System::Threading::ExitProcess(100); } }