What is a process group
Conor P. Cahill
cpcahil at virtech.UUCP
Fri Oct 20 11:46:29 AEST 1989
In article <1158 at msa3b.UUCP>, kevin at msa3b.UUCP (Kevin P. Kleinfelter) writes:
> I have inherited some code which does
> pid = setpgrp ();
> ioctl (2, TIOCSPGRP, &pid);
> to change the process group on the terminal. Why would someone want to
> do this?
The main purpose for changing the process group (and disconnecting from the
tty -- the ioctl()) is to allow a background/daemon process to continue
running without being affected by operations happening on the tty from
which the process started. Like the user loggin out, which will normally
send a SIGHUP to all processes associated with the terminal.
--
+-----------------------------------------------------------------------+
| Conor P. Cahill uunet!virtech!cpcahil 703-430-9247 !
| Virtual Technologies Inc., P. O. Box 876, Sterling, VA 22170 |
+-----------------------------------------------------------------------+
More information about the Comp.unix.questions
mailing list