[10606] in Athena Bugs
hpux patch for athena/athena.bin/olc/logger/bbd.c
daemon@ATHENA.MIT.EDU (brlewis@Athena.MIT.EDU)
Fri Jun 25 13:25:31 1993
From: brlewis@Athena.MIT.EDU
Date: Fri, 25 Jun 93 13:25:16 -0400
To: rel-eng@Athena.MIT.EDU, bugs@Athena.MIT.EDU
Cc: olcdev@Athena.MIT.EDU
I fixed this to compile under hpux, but then I realized bbd was outside
the scope of what I was doing. Later, I learned that under POSIX, you
should do setsid() instead of this ioctl.
*** /tmp/,RCSt1a18769 Fri Jun 25 13:22:48 1993
--- athena/athena.bin/olc/logger/bbd.c Fri Jun 11 12:58:17 1993
***************
*** 173,179 ****
--- 173,181 ----
fd = open("/dev/tty", O_RDWR, 0);
if (fd >= 0) {
+ #ifndef hpux
ioctl(fd, TIOCNOTTY, (char *) NULL);
+ #endif
(void) close (fd);
}
}