rs@mirror.UUCP (06/27/85)
What does TIOCNOTTY do? I know its used in network server code. thanks, -- Rich $alz {mit-eddie, ihnp4!inmet, wjh12, cca, datacube} !mirror!rs Mirror Systems 2067 Massachusetts Ave. 617-661-0777 Cambridge, MA, 02140
rs@mirror.UUCP (07/03/85)
Forgive the re-posting; this doesn't seem to have made it out: What does TIOCNOTTY do? I know it's used in network server code, but why? thanks, -- Rich $alz {mit-eddie, ihnp4!inmet, wjh12, cca, datacube} !mirror!rs Mirror Systems 2067 Massachusetts Ave. 617-661-0777 Cambridge, MA, 02140
marka@natmlab.OZ (Mark Andrews) (07/05/85)
TIOCNOTTY dissasociates the calling process from the starting tty. { /* associated with the starting tty */ int fd; if( (fd = open("/dev/tty",0)) < 0) err("can`t open /dev/tty"); else { (void)ioctl(fd,TIOCNOTTY,(char *)0); (void)close(fd); } } /* unassociated with any tty */