+Fri Aug 11 01:12:03 1995 Sam Hartman <hartmans@infocalypse>
+
+ * initialize_slave.c (pty_initialize_slave): You really do need to
+ push and pop the streams on a Sun.
+
+Fri Aug 11 00:49:23 1995 Sam Hartman <hartmans@dragons-lair.MIT.EDU>
+
+ * configure.in (ac_cv_func_setsid): Pretend that Ultrix doesn't
+ have setsid, because if it does make the call then the pty never
+ becomes controlling tty.
+
+Thu Aug 10 09:47:07 1995 Sam Hartman <hartmans@dragons-lair.MIT.EDU>
+
+ * open_ctty.c (pty_open_ctty): Move setpgrp() after void_assoc call
+
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
dnl
case $krb5_cv_host in
*-*-ultrix*)
+echo "Disabling initial vhangup and setsid because they break under Ultrix..."
AC_DEFINE([OPEN_CTTY_ONLY_ONCE],[1])
+ac_cv_func_setsid=no # setsid doesn't do the right thing under Ultrix even though present
;;
*-*-aix3*) # AIX has streams include files but not streams TTY
return PTY_OPEN_SLAVE_LINE_PUSHFAIL;
}
#else /*No line_push */
-#if 0 /* used to be SUN*/
+#ifdef sun
if (ioctl(fd, I_PUSH, "ptem") < 0)
return PTY_OPEN_SLAVE_PUSH_FAIL;
if (ioctl(fd, I_PUSH, "ldterm") < 0)
(void) setsid();
#endif
+/* First, dissociate from previous terminal */
+ if ( (retval = ptyint_void_association()) != 0 )
+ return retval;
#ifdef ultrix
/* The Ultrix (and other BSD tty drivers) require the process group
* to be zero, in order to acquire the new tty as a controlling tty. */
(void) setpgrp(0, 0);
#endif
-/* First, dissociate from previous terminal */
- if ( (retval = ptyint_void_association()) < 0 )
- return retval;
+
*fd = open(slave, O_RDWR);
if (*fd < 0 )
return PTY_OPEN_SLAVE_OPENFAIL;
#endif
+
/* First, chmod and chown the slave*/
/*
* If we have vhangup then we really need pty_open_ctty to make sure