setpgrp
Purpose
Sets the process group ID.
Syntax
int setpgrp (flag)
int flag;
Description
If the flag parameter has a nonzero value, then setpgrp
sets the process group ID of the calling process to be
the same as its process ID and returns the new value. If
the flag parameter is 0, then the process group ID is not
changed, but its value is returned.
Related Information
In this book: "exec: execl, execv, execle, execve,
execlp, execvp," "fork," "getpid, getpgrp, getppid,"
"kill," and "signal."