getpgrp()

get process group ID 

Function


SYNOPSIS

#include <sys/types.h>

#include <unistd.h>

pid_t getpgrp(void);


DESCRIPTION

The getpgrp() function gets the process group ID of the calling process.


PARAMETERS

None.


RETURN VALUES

When completed, getpgid() returns the process group ID of the calling process. This call always returns successfully; therefore, no return value is reserved to indicate an error.


CONFORMANCE

POSIX.1 (1996)


MULTITHREAD SAFETY LEVEL

Async-signal-safe.


PORTING ISSUES

The returned process group ID is the Win32 process ID of the process group leader. Refer to Windows Concepts in the MKS Toolkit UNIX to Windows Porting Guide for more information about process IDs.


AVAILABILITY

MKS Toolkit for Professional Developers
MKS Toolkit for Enterprise Developers
MKS Toolkit for Enterprise Developers 64-Bit Edition


SEE ALSO

Functions:
execl(), execle(), execlp(), execv(), execve(), execvp(), fork(), getpgid(), getpid(), getsid(), setpgid(), setpgrp(), setsid()


MKS Toolkit 9.2 Documentation Build 16.