Function afl::init [] [src]

pub unsafe fn init()

Initialize the afl runtime.

Only needed when the env var AFL_DEFER_FORKSRV is set.

It's undefined behavior to call this function from multiple threads. You almost certainly need to call it before any additional threads are created.

However, calling this more than once in a single-threaded program, or calling it when not running with AFL_DEFER_FORKSRV is safe and a no-op.