Skip to main content

Module process

Module process 

Source
Available on crate feature process only.
Expand description

Process utilities.

Constants§

HALT_EXIT_CODE
The exit code of halt!.
RESTART_IN_PLACE_EXIT_CODE
The exit code of restart_in_place!.

Functions§

exit_thread_safe
Helper for exiting macros.
halt_with_codetracing
Like halt!, but exits with the given code, so that a restart with a specific cause can be told apart from a routine halt.
set_current_thread_name
Sets the OS-level name of the calling thread, visible to tools like top -H, perf, samply, and /proc/<pid>/task/*/comm.