From: Mark Eichin Date: Sat, 27 Jan 1996 06:14:24 +0000 (+0000) Subject: * void_assoc.c (ptyint_void_association): if we don't have X-Git-Tag: krb5-1.0-beta6~547 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=db596352979016c7dd67371d19f81f7808f5da4e;p=krb5.git * void_assoc.c (ptyint_void_association): if we don't have TIOCNOTTY (HP/UX 9 for example) don't try to use it. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7405 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/util/pty/ChangeLog b/src/util/pty/ChangeLog index 878b08a3a..c897bea8b 100644 --- a/src/util/pty/ChangeLog +++ b/src/util/pty/ChangeLog @@ -1,3 +1,8 @@ +Sat Jan 27 01:13:34 1996 Mark Eichin + + * void_assoc.c (ptyint_void_association): if we don't have + TIOCNOTTY (HP/UX 9 for example) don't try to use it. + Tue Jan 16 13:52:22 1996 Sam Hartman * void_assoc.c (ptyint_void_association): Move setsid call from open_ctty to void_association. diff --git a/src/util/pty/void_assoc.c b/src/util/pty/void_assoc.c index 34915d5dc..c1a3acdca 100644 --- a/src/util/pty/void_assoc.c +++ b/src/util/pty/void_assoc.c @@ -29,9 +29,11 @@ long ptyint_void_association() #endif /* Void tty association first */ +#ifdef TIOCNOTTY if ((con_fd = open("/dev/tty", O_RDWR)) >= 0) { ioctl(con_fd, TIOCNOTTY, 0); close(con_fd); } +#endif return 0; }