process group question

Martin Kirk mkirk at zaphod.axion.bt.co.uk
Sat Feb 10 08:30:05 AEST 1990


>From article <W566W at masalla.fulcrum.bt.co.uk>, by tjo at its.bt.co.uk (Tim Oldham):
> 
> Note that the ioctl to (dis)associate the processes with the terminal
> is TIOCSPGRP - you do the (dis)association on a process group, not
> on a process.
> 
> 	Tim.

To include from termio.4 under SunOS4.0.1:

     The controlling terminal is inherited  by  a  child  process
     during a fork(2).  A process relinquishes its control termi-
     nal when it changes its process group using  setpgrp(2V)  or
     when  it issues a TIOCNOTTY ioctl(2) call on a file descrip-
     tor created by opening the file /dev/tty.

This is a hybrid of the BSD and System V functionality.


MArtin
============================================================================
E-Mail:       MKirk at axion.bt.co.uk (...mcvax!ukc!axion!mkirk)
Organisation: British Telecom Research Laboratories (RT3134)
Snail Mail:   BTRL, Rm 306A SSTF, Martlesham Heath, IPSWICH IP5 7RE, UK
Telephone:    +44 473 642518            Fax: +44 473 643019
Quote:        "It has been stated somewhere that men can be divided into
	       two classes - those who can and those who can not stop a dog
	       fight."          "Bulldog Drummond at Bay" by "Sapper"
============================================================================



More information about the Comp.unix.questions mailing list