blob: 75e8a1a167d67f6df22039d3398bd964fbd894cd [file] [log] [blame]
#ifndef AOS_TESTING_PREVENT_EXIT_H_
#define AOS_TESTING_PREVENT_EXIT_H_
namespace aos::testing {
// Registers an exit handler (using atexit(3)) which will call _exit(2).
// Intended to be called in a freshly fork(2)ed process where it will run before
// any other exit handlers that were already registered and prevent them from
// being run.
void PreventExit();
} // namespace aos::testing
#endif // AOS_TESTING_PREVENT_EXIT_H_