Qp0wGetPPid()--Get Process ID of Parent Process


  Syntax
 #include <sys/types.h>
 #include <qp0wpid.h>

 pid_t Qp0wGetPPid(void);

  Service Program Name: QP0WSRV1

  Default Public Authority: *USE

  Threadsafe: Yes

The Qp0wGetPPid() function returns the parent process ID of the calling process.


Parameters

None.


Authorities

None.


Return Value

pid_t The value returned by Qp0wGetPPid() is the process ID of the parent process for the calling process. A process ID value of 1 indicates that there is no parent process associated with the calling process.


Error Conditions

The Qp0wGetPPid() function is always successful and does not return an error.


Usage Notes

The Qp0wGetPPid() function provides an i5/OS-specific way to obtain the parent process ID of the calling process. It performs the same function as getppid().


Related Information



API introduced: V3R6
Top | UNIX-Type APIs | APIs by category