Qp0wChkChld()--Check Status for Child Processes


  Syntax
 #include <qp0wpid.h>

 int Qp0wChkChld(QP0W_PID_Entries_T *chldinfo);  
 

  Service Program Name: QP0WPID

  Default Public Authority: *USE

  Threadsafe: Yes

The Qp0wChkChld() function returns the status and process table entry information for the child processes of the specified process ID.


Parameters

*chldinfo
(I/O) A pointer to the QP0W_PID_Entry_T structure. This structure contains the process table entry information for the children processes identified by pid.

The structure QP0W_PID_Entry_T is defined in the <qp0wpid.h> header file as follows:

typedef struct QP0W_PID_Entries_T {
    int          entries_prov;
    int          entries_could;
    int          entries_return;
    pid_t        pid;
    QP0W_PID_Data_T  entry[1];
} QP0W_PID_Entries_T;

The members of the QP0W_PID_Entry_T structure are as follows:

The structure QP0W_PID_Data_T is defined in the <qp0wpid.h> header file as follows:

typedef struct QP0W_PID_Data_T {
    pid_t         pid;
    pid_t         ppid;
    pid_t         pgrp;
    int           status;
    unsigned int  exit_status;
} QP0W_PID_Data_T;

The members of the QP0W_PID_Data_T structure are as follows:



Authorities

The process calling Qp0wChkChld() must have the appropriate authority to the process being examined. A process is allowed to examine the process table information for a process if at least one of the following conditions is true:


Return Value



Usage Notes

The Qp0wChkChld() function provides an IBM® i-specific way to obtain the process table information for the child processes of the specified process.


Related Information



API introduced: V3R6

[ Back to top | UNIX-Type APIs | APIs by category ]