|
|
researchv10 Dan Cross
.TH SETPGRP 2J .UC 4 .SH NAME setpgrp, getpgrp \- set/get process group .SH SYNOPSIS .B int getpgrp(pid) .PP .B setpgrp(pid, pgrp) .PP .B cc ... \-ljobs .SH DESCRIPTION The process group of the specified process is returned by .I getpgrp. .I Setpgrp sets the process group of the specified process .I pid to the specified .I pgrp. If .I pid is zero, then the call applies to the current process. .PP If the invoker is not the super-user, then the affected process must have the same effective user-id as the invoker or be a descendant of the invoking process. .PP This call is used by .IR csh (1) to create process groups in implementing job control. The TIOCGPGRP and TIOCSPGRP calls described in .IR tty (4) are used to get/set the process group of the control terminal. .PP See .IR jobs (3) for a general discussion of job control. .SH "SEE ALSO" jobs(3), getuid(2), tty(4) .SH BUGS The job control facilities are not available in standard version 7 UNIX. These facilities are still under development and may change in future releases of the system as better inter-process communication facilities and support for virtual terminals become available. The options and specifications of these system calls and even the calls themselves are thus subject to change. .PP A system call .I setpgrp has been implemented in other versions of UNIX which are not widely used outside of Bell Laboratories; these implementations have, in general, slightly different semantics.
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.