diff --git a/libafl/src/events/mod.rs b/libafl/src/events/mod.rs index a970236751..55f3a73fd1 100644 --- a/libafl/src/events/mod.rs +++ b/libafl/src/events/mod.rs @@ -87,7 +87,7 @@ pub unsafe fn shutdown_handler( std::ptr::drop_in_place(sr); } log::info!("Bye!"); - std::process::exit(0); + libc::_exit(0); } #[cfg(all(unix, feature = "std"))] diff --git a/libafl/src/executors/inprocess.rs b/libafl/src/executors/inprocess.rs index ceb2ac2e19..2c998ca7b8 100644 --- a/libafl/src/executors/inprocess.rs +++ b/libafl/src/executors/inprocess.rs @@ -1536,7 +1536,7 @@ where .post_exec_child_all(state, input, &ExitKind::Ok) .expect("Failed to run post_exec on observers"); - std::process::exit(0); + libc::_exit(0); Ok(ExitKind::Ok) } @@ -1613,7 +1613,7 @@ where .post_exec_child_all(state, input, &ExitKind::Ok) .expect("Failed to run post_exec on observers"); - std::process::exit(0); + libc::_exit(0); Ok(ExitKind::Ok) }