Hi,
I have written a program which runs as a daemon.
To lose the controlling tty, I call ioctl():
if ( (fd = open("/dev/tty", O_RDWR)) >= 0) {
ioctl(fd, TIOCNOTTY, (char *)NULL); /* lose controlling tty */
close(fd);
I can compile the program under Linux and NeXT. But I also want to
compile it under SunOS 5.5. The compiler returns the error message,
that TIOCNOTTY is unknow. I can't find out how to use the ioctl function
with Sun operating system.
Thanks for any hints.
Tim
--
'All of my life - in a world so unfair' (GENESIS 1992)
******************************************************
* Tim Weilkiens, Kiel, Germany *
******************************************************