parent
b0d592dc3a
commit
4562f19bdc
@ -88,7 +88,7 @@ impl Handler for ShutdownSignalData {
|
||||
// println!("Exiting from the handler....");
|
||||
|
||||
#[cfg(unix)]
|
||||
libc::_exit(100);
|
||||
libc::_exit(CTRL_C_EXIT);
|
||||
|
||||
#[cfg(windows)]
|
||||
windows::Win32::System::Threading::ExitProcess(100);
|
||||
|
@ -13,7 +13,7 @@ use std::{
|
||||
ptr,
|
||||
};
|
||||
|
||||
use libafl::executors::ExitKind;
|
||||
use libafl::{events::CTRL_C_EXIT, executors::ExitKind};
|
||||
#[cfg(emulation_mode = "systemmode")]
|
||||
use libafl_qemu_sys::qemu_init;
|
||||
#[cfg(emulation_mode = "usermode")]
|
||||
@ -287,7 +287,7 @@ where
|
||||
let (command, ret_reg): (Option<Command>, Option<Regs>) = match &mut exit_reason {
|
||||
EmuExitReason::End(shutdown_cause) => match shutdown_cause {
|
||||
QemuShutdownCause::HostSignal(Signal::SigInterrupt) => {
|
||||
return Ok(InnerHandlerResult::Interrupt)
|
||||
std::process::exit(CTRL_C_EXIT);
|
||||
}
|
||||
QemuShutdownCause::GuestPanic => {
|
||||
return Ok(InnerHandlerResult::EndOfRun(ExitKind::Crash))
|
||||
|
Loading…
x
Reference in New Issue
Block a user