proc_state_pid()

The process state

Syntax:

char proc_state_pid(int pid);

Arguments:

Name Description
pid PID of process

Description:

The process state: 'R' for running, 'S' for interruible sleeping or swapping, 'D' for unterruptible sleeping or swapping, 'Z' for zombie, 'T' for traced or stopped, and 'W' for swapped.

Return Values:

On success, returns the process state. On error, -1 is returned.

See Also:

proc_exe_name_pid(), proc_ppid_pid(), proc_pgrp_pid() proc_sid_pid(), proc_terminal_pid(), proc_ptgid_pid(), proc_flags_pid()



INDEX