|
|
|
int getpid() /* get process id */
/* returns id */
int setpgrp() /* set process group id */
/* returns new process-group -id */
The process becomes the leader of its own process group.
The first terminal which the leader opens becomes control terminal.
Every process of a process group has "process
group id", "process id" of the group leader.
|
|
|