controlling tty before setting it to another tty.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5493
dc483132-0cff-0310-8789-
dd5450dbe970
+Wed Apr 26 07:19:18 1995 Chris Provenzano (proven@mit.edu)
+
+ * krlogind.c (doit()) : If TIOCOTTY is defined unset the
+ controlling tty before setting it to another tty.
+
Tue Apr 25 21:23:28 1995 Chris Provenzano (proven@mit.edu)
* forward.c (rd_and_store_for_creds()) : Rewritten to use
}
#endif /* VHANG_FIRST */
+#ifdef TIOCNOTTY
+ {
+ int con_fd;
+ /* Void tty association first */
+ if ((con_fd = open("/dev/tty", O_RDWR)) >= 0) {
+ ioctl(con_fd, TIOCNOTTY, 0);
+ close(con_fd);
+ }
+ }
+#endif
+
#ifdef HAVE_SETSID
(void) setsid();
#endif