Wed Aug 9 00:16:40 1995 Sam Hartman <hartmans@tertius.mit.edu>
+ * pty-int.h (VHANG_first): Change defines so VHANG_FIRST doesn't
+ get defined under Ultrix because Ultrix can only establish
+ controlling terminal once per process and we need to get
+ controlling terminal again after vhangup().
+
* getpty.c (pty_getpty): Use the right test for slave buffer length.
Tue Aug 8 22:20:33 1995 Tom Yu <tlyu@lothlorien.MIT.EDU>
dnl login.
dnl
case $krb5_cv_host in
+*-*-ultrix*)
+AC_DEFINE([OPEN_CTTY_ONLY_ONCE],[1])
+;;
+
*-*-aix3*) # AIX has streams include files but not streams TTY
# Moreover, strops.h trashes sys/ioctl.h
krb5_cv_has_streams=no
#endif
#endif
-#if defined(HAVE_VHANGUP)
-#define VHANG_first /* may not work under Ultrix*/
+#if defined(HAVE_VHANGUP) && !defined(OPEN_CTTY_ONLY_ONCE)
+#define VHANG_first /* Breaks under Ultrix and others where you cannot get controlling terminal twice.*/
#define VHANG_LAST
#endif