Module libafl_bolts::os::unix_signals
source · Expand description
Signal handling for unix
Structs§
Enums§
- All signals on this system, as
enum
. - Equivalent to C’s
void
type when used as a pointer.
Constants§
- The special exit code when the target exited through ctrl-c
Traits§
- A trait for
LibAFL
signal handling
Functions§
- Setup signal handlers in a somewhat rusty way. This will allocate a signal stack and set the signal handlers accordingly. It is, for example, used in
LibAFL's
InProcessExecutor
to restart the fuzzer in case of a crash, or to handleSIGINT
in the broker process. - Function to get the current
ucontext_t
for this process. This calls the libcgetcontext
function under the hood. It can be useful, for example fordump_regs
. Note that calling this method may, of course, alter the state. We wrap it here, as it seems to be (currently) not available onMacOS
in thelibc
crate.