/*
 *	BecomeConsole:	become the console, 
 *		but redirecting console messages
 *		to the slave end of a pseudo-terminal 
 *		(which should be open on stdout).
 *
 *	@(#)BecomeConsole.c 1.2	3/8/90 09:56:41
 *
 */

#include <fcntl.h>
#include <sys/termios.h>

main()
{
	int	ioctlResult;
	
	ioctlResult = ioctl(1, TIOCCONS, 0);
	if (ioctlResult != 0) {
		perror("BecomeConsole: Couldn't become console");
		exit(1);
		};
	};