Returns the status of a process.
kpidstate (pid)
pid_t pid;
The kpidstate subroutine returns the state of a process specified by the pid parameter. The kpidstate subroutine can only be called by a process.
| Item | Description |
|---|---|
| pid | Specifies the product ID. |
| Item | Description |
|---|---|
| SNONE | Return KP_NOTFOUND. |
| SIDL | Return KP_INITING. |
| SZOMB | Return KP_EXITING, also if SEXIT in pv_flag. |
| SSTOP | Return KP_STOPPED. |