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 IBM® i-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
- The <sys/types.h> file (see Header Files for UNIX®-Type Functions)
- The <qp0wpid.h> file (see Header
Files for UNIX-Type Functions)
- getpid()--Get Process ID
- Qp0wGetPid()--Get Process ID
- Qp0sDisableSignals()--Disable Process for
Signals
- Qp0sEnableSignals()--Enable Process for Signals
API introduced: V3R6