LCOV - code coverage report
Current view: top level - libs/utils/src - shutdown.rs (source / functions) Coverage Total Hit
Test: a43a77853355b937a79c57b07a8f05607cf29e6c.info Lines: 0.0 % 3 0
Test Date: 2024-09-19 12:04:32 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