Index of Section 2 Manual Pages

Interix / SUAgetpgrp.2Interix / SUA

getpgrp(2)                                                   getpgrp(2)

  getpgrp()

  NAME

    getpgrp() - get process group

  SYNOPSIS

    #include 

    pid_t getpgrp (void)

  DESCRIPTION

    The getpgrp(2) function returns the process group ID of the current
    process.

    Process groups are used for distribution of signals, and by terminals to
    arbitrate requests for their input: processes that have the same process
    group as the terminal are foreground and may read, while others will block
    with a signal if they attempt to read.

  RETURN VALUE

    The getpgrp(2) function is always successful and no return value is
    reserved to indicate an error.

  SEE ALSO

    setpgid(2)

    setsid(2)

  USAGE NOTES

    The getpgrp function is thread safe.

    The getpgrp function is async-signal safe.


Interix / SUAHosted at SUA Community for Interix, SUA and SFUInterix / SUA