getpgid man page on DigitalUNIX

Man page or keyword search:  
man Server   12896 pages
apropos Keyword Search (all sections)
Output format
DigitalUNIX logo
[printable version]

getpgid(2)							    getpgid(2)

NAME
       getpgid - Get the process group ID

SYNOPSIS
       #include <sys/types.h> #include <unistd.h>

       pid_t getpgid
	       pid_t pid );

STANDARDS
       Interfaces  documented on this reference page conform to industry stan‐
       dards as follows:

       getpgid(): XSH4.2, XSH5.0

       Refer to standards(5) for more information about industry standards and
       associated tags.

PARAMETERS
       Specifies  the process ID of the target process; zero implies the call‐
       ing process.

DESCRIPTION
       The getpgid() function returns the process  group  ID  of  the  process
       specified  by the process ID pid.  Specifying a pid of 0 (zero) returns
       the process group ID of the calling process.

RETURN VALUES
       The getpgid() function returns the process  group  ID  of  the  process
       specified.   If there was an error, a value of -1 is returned and errno
       is set to indicate the error.

ERRORS
       If any of the following conditions occurs, the getpgid() function  sets
       errno to the corresponding value: The pid argument is an invalid value.
       The specified process is	 not  in  the  same  session  as  the  calling
       process, and the calling process lacks sufficient privilege to read the
       specified process.

	      On Tru64 UNIX systems, special privileges are not a  requirement
	      for  using  this function.  No process was found with the speci‐
	      fied pid value.

SEE ALSO
       Functions: exec(2), fork(2), setpgid(2)

       Standards: standards(5)

								    getpgid(2)
[top]

List of man pages available for DigitalUNIX

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net