How to do TIOCNOTTY on System V

Guy Harris guy at auspex.auspex.com
Thu Aug 3 04:31:39 AEST 1989


>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.



More information about the Comp.unix.questions mailing list