LCOV - code coverage report
Current view: top level - libs/utils/src - shutdown.rs (source / functions) Coverage Total Hit
Test: 792183ae0ef4f1f8b22e9ac7e8748740ab73f873.info Lines: 0.0 % 3 0
Test Date: 2024-06-26 01:04:33 Functions: 0.0 % 1 0

            Line data    Source code
       1              : /// Immediately terminate the calling process without calling
       2              : /// atexit callbacks, C runtime destructors etc. We mainly use
       3              : /// this to protect coverage data from concurrent writes.
       4            0 : pub fn exit_now(code: u8) -> ! {
       5            0 :     // SAFETY: exiting is safe, the ffi is not safe
       6            0 :     unsafe { nix::libc::_exit(code as _) };
       7              : }
        

Generated by: LCOV version 2.1-beta