nix::sys::prctl

Function set_name

source
pub fn set_name(name: &CStr) -> Result<()>
Expand description

Set the name of the calling thread. Strings longer than 15 bytes will be truncated.