qemacs-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemacs-commit] qemacs shell.c


From: Charlie Gordon
Subject: [Qemacs-commit] qemacs shell.c
Date: Wed, 18 Dec 2013 23:39:53 +0000

CVSROOT:        /sources/qemacs
Module name:    qemacs
Changes by:     Charlie Gordon <chqrlie>        13/12/18 23:39:53

Modified files:
        .              : shell.c 

Log message:
        shell: cosmetic changes

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/qemacs/shell.c?cvsroot=qemacs&r1=1.66&r2=1.67

Patches:
Index: shell.c
===================================================================
RCS file: /sources/qemacs/qemacs/shell.c,v
retrieving revision 1.66
retrieving revision 1.67
diff -u -b -r1.66 -r1.67
--- shell.c     3 Dec 2013 17:44:00 -0000       1.66
+++ shell.c     18 Dec 2013 23:39:53 -0000      1.67
@@ -114,7 +114,12 @@
 
 #ifdef CONFIG_PTSNAME
     /* First try Unix98 pseudo tty master */
-    if ((fd = open("/dev/ptmx", O_RDWR)) >= 0) {
+
+    /* CG: should check if posix_openpt is more appropriate than /dev/ptmx */
+    //fd = posix_openpt(O_RDWR | O_NOCTTY);
+
+    fd = open("/dev/ptmx", O_RDWR);
+    if (fd >= 0) {
 #if 0
         /* ptsname_r is a sensible renentrant version of ptsname, but
          * it lacks portability, notably on OpenBSD and cygwin. So we
@@ -160,7 +165,7 @@
                        int cols, int rows, int is_shell)
 {
     int pty_fd, pid, i, nb_fds;
-    char tty_name[32];
+    char tty_name[1024];
     struct winsize ws;
 
     pty_fd = get_pty(tty_name, sizeof(tty_name));
@@ -392,7 +397,7 @@
     }
 }
 
-/* Compute offset the of the char at column x and row y (0 based).
+/* Compute offset of the char at column x and row y (0 based).
  * Can insert spaces or rows if needed.
  * x and y may each be relative to the current position.
  */



reply via email to

[Prev in Thread] Current Thread [Next in Thread]