Qp0wGetPidNoInit()--Get Process ID without Initializing for Signals


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

 pid_t Qp0wGetPidNoInit(void);

  Service Program Name: QP0WSRV1

  Default Public Authority: *USE

  Threadsafe: Yes

The Qp0wGetPidNoInit() function returns the process ID of the calling process without enabling the process to receive signals.


Parameters

None.


Authorities

None.


Return Value

pid_t The value returned by Qp0wGetPidNoInit() is the process ID of the calling process.


Error Conditions

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


Usage Notes

The Qp0wGetPidNoInit() function provides an i5/OS-specific way to obtain the process ID of the calling process. It performs the same function as the getpid() function without enabling the process to receive signals.


Related Information



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