pub fn pid_setpriority(pid: Pid, value: i32) -> ProcessResult<()> {
    let result = unsafe { libc::setpriority(PRIO_PROCESS, pid as libc::id_t, value) };
    if result == 0 {
        Ok(())
    } else {
        Err(Error::last_os_error().into())
    }
}
/// Safe wrapper for POSIX `setpriority`
Safe wrapper for POSIX `setpriority`
Safe wrapper for POSIX ` setpriority `
pub fn pid_setpriority(pid: Pid, value: i32) -> ProcessResult<()> {
    let result = unsafe { libc::setpriority(PRIO_PROCESS, pid as libc::id_t, value) };
    if result == 0 {
        Ok(())
    } else {
        Err(Error::last_os_error().into())
    }
}
pub fn pid_setpriority ( pid : Pid , value : i32 ) -> ProcessResult < ( ) > { let result = unsafe { libc :: setpriority ( PRIO_PROCESS , pid as libc :: id_t , value ) } ; if result == 0 { Ok ( ( ) ) } else { Err ( Error :: last_os_error ( ) . into ( ) ) } }
Safe wrapper for POSIX `setpriority`
Safe wrapper for POSIX ` setpriority `
pid
Pid
value
i32
pid
Pid
value
i32