Amiga Unix — 68040 · 68060

Manual pages › System calls (2)

setpgrp(2)

set process group ID

From the original Amiga UNIX 2.1 manual. Some things it mentions may not be in this release.

NAME

setpgrp - set process group ID

SYNOPSIS

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

pid_t setpgrp (void);

DESCRIPTION

If the calling process is not already a session leader, setpgrp sets the process group ID and session ID of the calling process to the process ID of the calling process, and releases the calling process's controlling terminal.

SEE ALSO

intro(2), exec(2), fork(2), getpid(2),  kill(2),  setsid(2),
signal(2).

DIAGNOSTICS

setpgrp returns the value of the new process group ID.

NOTES

setpgrp will be phased out in favor of the setsid(2) function.