pub fn sig_bitmap(args: &SigBitmapArgs)
Expand description
Displays the formatted string representaion of the specified type of signal bitmap for a given process. This function outputs an empty map if the process doesn’t exist or if there is an error interpreting the signal bitmap.
§Arguments
args
- A reference to anenum
containing the process ID (PID) and the signal bitmap type.
§Returns
A Vec<String>
containing a list of interpreted signals.
§Example
// Print the list of signals ignored by a process with PID: 42.
use sig_bitmap::{sig_bitmap, BitmapType, SigBitmapArgs};
let args: SigBitmapArgs = SigBitmapArgs{pid: 42, map: BitmapType::SigIgn};
sig_bitmap(&args);