Registry / utility / prctl
library1.0.0rscratesunverified

Safe abstraction to the Linux prctl() interface.

# Cargo.toml [dependencies] prctl = "1.0.0"
INSTALL
IMPORT
SIG · PRCTL
P
prctl
utilityrustv1.0.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

set_name
use prctl::set_name;

Set the process name using prctl

use prctl::set_name; fn main() { set_name("my-process").unwrap(); println!("Process name set"); }
Debug
Known issues
gotchaOnly works on Linux systems; will fail on other platforms.
fix
Use conditional compilation or only run on Linux.
affects: all
Upgrade
Version history
1.0.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
7 hits · last 30 days
node
6
Amazon
1
Resources
prctl — cargo add prctl · libregistry