James Carlson <[email protected]> wrote: > Yes, it's implemented. The streamio.c strioctl() implementation is the > real one. The gentty.c module is a red herring. It's part of the > obscure "sy" driver ... which has no man page and dates back to the USL > implementation. I have no idea what it does. :-/ > > For what it's worth, I would use fork()/setsid()/fork() to disclaim a > controlling tty. It's simple and always works. (Though, notably, it > does not get you outside of an existing contract, which is sometimes an > important distinction for programs that operate as daemons.)
The problem with sedsid() and a double fork() is that you cannot wait for the program anymore. This was one reason for introducing the contract filesystem. A working TIOCNOTTY would allow to deassociate the controlling tty without the need for something like ctfs to wait for the "child". Jörg -- EMail:[email protected] (home) Jörg Schilling D-13353 Berlin [email protected] (uni) [email protected] (work) Blog: http://schily.blogspot.com/ URL: http://cdrecord.berlios.de/private/ ftp://ftp.berlios.de/pub/schily _______________________________________________ opensolaris-code mailing list [email protected] http://mail.opensolaris.org/mailman/listinfo/opensolaris-code
