Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Posting-Version: version B 2.10.2 (MU) 9/23/84; site natmlab.OZ
Path: utzoo!watmath!clyde!burl!ulysses!allegra!mit-eddie!think!harvard!seismo!munnari!natmlab!marka
From: marka@natmlab.OZ (Mark Andrews)
Newsgroups: net.unix-wizards
Subject: Re: TIOCNOTTY?
Message-ID: <237@natmlab.OZ>
Date: Thu, 4-Jul-85 20:23:54 EDT
Article-I.D.: natmlab.237
Posted: Thu Jul  4 20:23:54 1985
Date-Received: Sat, 6-Jul-85 10:39:25 EDT
References: <13400010@mirror.UUCP>
Reply-To: marka@natmlab.UUCP (Mark Andrews)
Organization: CSIRO Div Maths and Stats & Div App Phys, Sydney, Australia
Lines: 14


	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 */