Your Browser is not longer supported

Please use Google Chrome, Mozilla Firefox or Microsoft Edge to view the page correctly
Loading...

{{viewport.spaceProperty.prod}}

setpgrp - set process group ID

&pagelevel(4)&pagelevel

Syntax

#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 the session number of the calling process to the process ID of the calling process and
releases the controlling terminal of the calling process.

The function does not have any effect if the calling process is a session leader.

Return val.

See also

setpgrp() returns the value of the new process group ID.

exec, fork(), getpid(), getsid(), kill(), setsid(), unistd.h.