Heyla,
if you've got rxvt-2.7.5 working on SunOS/Solaris without any problems
and your OS is set up to use ptmx (instead of BSD ttys) I'll be
interested to hear what OS version.  For other people, you may want
to try this patch:


Index: src/init.c
===================================================================
RCS file: /cvsroot/rxvt/rxvt/src/init.c,v
retrieving revision 1.45
diff -u -r1.45 init.c
--- src/init.c  2000/09/26 06:47:04     1.45
+++ src/init.c  2000/09/30 06:00:28
@@ -1138,6 +1138,24 @@
        D_TTY((stderr, "rxvt_run_child(): couldn't set controlling terminal, trying 
again: %s", r->tty_fd < 0 ? "no (bad)" : "yes (good)"));
     }
 /* ---------------------------------------- */
+#if defined(PTYS_ARE_PTMX) && defined(I_PUSH)
+/*
+ * Push STREAMS modules:
+ *    ptem: pseudo-terminal hardware emulation module.
+ *    ldterm: standard terminal line discipline.
+ *    ttcompat: V7, 4BSD and XENIX STREAMS compatibility module.
+ */
+#ifdef HAVE_ISASTREAM
+    if (isastream(r->tty_fd) == 1)
+#endif
+    if (!r->h->changettyowner) {
+       D_TTY((stderr, "rxvt_run_child(): STREAMS pushing"));
+       ioctl(r->tty_fd, I_PUSH, "ptem");
+       ioctl(r->tty_fd, I_PUSH, "ldterm");
+       ioctl(r->tty_fd, I_PUSH, "ttcompat");
+    }
+#endif
+/* ---------------------------------------- */
     fd = open("/dev/tty", O_WRONLY);
     D_TTY((stderr, "rxvt_run_child(): do we have controlling tty now: %s", fd < 0 ? 
"no (fatal)" : "yes (good)"));
     if (fd < 0)
@@ -1405,24 +1423,6 @@
        close(pfd);
        return -1;
     }
-#if defined(PTYS_ARE_PTMX) && defined(I_PUSH)
-/*
- * Push STREAMS modules:
- *    ptem: pseudo-terminal hardware emulation module.
- *    ldterm: standard terminal line discipline.
- *    ttcompat: V7, 4BSD and XENIX STREAMS compatibility module.
- */
-#ifdef HAVE_ISASTREAM
-    if (isastream(r->tty_fd) == 1)
-#endif
-    if (!r->h->changettyowner) {
-       D_TTY((stderr, "rxvt_get_ptytty(): STREAMS pushing"));
-       ioctl(r->tty_fd, I_PUSH, "ptem");
-       ioctl(r->tty_fd, I_PUSH, "ldterm");
-       ioctl(r->tty_fd, I_PUSH, "ttcompat");
-    }
-#endif
-
     rxvt_get_ttymode(&(r->h->tio));
 
     return r->cmd_fd;

-- 
Geoff Wing : <[EMAIL PROTECTED]>
Rxvt Stuff : <[EMAIL PROTECTED]>
Zsh Stuff  : <[EMAIL PROTECTED]>

Reply via email to