Qp0wGetPgrp()--Get Process Group ID
Syntax
#include <sys/types.h> #include <qp0wpid.h> pid_t Qp0wGetPgrp(void);
Service Program Name: QP0WSRV1
Default Public Authority: *USE
Threadsafe: Yes
The Qp0wGetPgrp() function returns the process group ID of the calling process.
Parameters
None.
Authorities
None.
Return Value
pid_t | The value returned by Qp0wGetPgrp() is the process group ID of the calling process. |
Error Conditions
The Qp0wGetPgrp() function is always successful and does not return an error.
Usage Notes
- The Qp0wGetPgrp() function provides an IBM® i-specific way
to obtain the process group ID of the calling process. It performs the same
function as getpgrp().
- Qp0wGetPgrp() enables a process for signals if the process is not already enabled for signals. For details, see Qp0sEnableSignals()--Enable Process for Signals.
Related Information
- The <sys/types.h> file (see Header Files for UNIX®-Type Functions)
- getpgrp()--Get Process Group ID
- Qp0sDisableSignals()--Disable Process for
Signals
- Qp0sEnableSignals()--Enable Process for Signals
API introduced: V3R6