Skip to content

Commit

Permalink
aaa
Browse files Browse the repository at this point in the history
  • Loading branch information
rmalmain committed Jun 24, 2024
1 parent c2a074c commit 7154391
Showing 1 changed file with 5 additions and 14 deletions.
19 changes: 5 additions & 14 deletions libafl/src/events/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}

Expand Down

0 comments on commit 7154391

Please sign in to comment.