[comp.unix.questions] How to do TIOCNOTTY on System V

wendt@segovia.CS.ColoState.Edu (alan l wendt) (08/02/89)

Anybody know how to do the System V equivalent of TIOCNOTTY?
That is, to disassociate the terminal from the running process.

thanks
Alan Wendt

guy@auspex.auspex.com (Guy Harris) (08/03/89)

>Anybody know how to do the System V equivalent of TIOCNOTTY?
>That is, to disassociate the terminal from the running process.

Call "setpgrp()", which takes no arguments.  It will dissociate the
terminal, although it sets the process group ID to the process ID of the
process executing it, rather than to 0 as TIOCNOTTY does.