emacs-diffs
[Top][All Lists]
Advanced

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

[Emacs-diffs] emacs/src term.c ChangeLog


From: Dan Nicolaescu
Subject: [Emacs-diffs] emacs/src term.c ChangeLog
Date: Fri, 12 Dec 2008 00:54:35 +0000

CVSROOT:        /cvsroot/emacs
Module name:    emacs
Changes by:     Dan Nicolaescu <dann>   08/12/12 00:54:35

Modified files:
        src            : term.c ChangeLog 

Log message:
        (init_tty): Move setting the terminal name before the
        potential user: maybe_fatal.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/emacs/src/term.c?cvsroot=emacs&r1=1.231&r2=1.232
http://cvs.savannah.gnu.org/viewcvs/emacs/src/ChangeLog?cvsroot=emacs&r1=1.7190&r2=1.7191

Patches:
Index: term.c
===================================================================
RCS file: /cvsroot/emacs/emacs/src/term.c,v
retrieving revision 1.231
retrieving revision 1.232
diff -u -b -r1.231 -r1.232
--- term.c      11 Dec 2008 20:38:36 -0000      1.231
+++ term.c      12 Dec 2008 00:54:31 -0000      1.232
@@ -3402,6 +3402,9 @@
       fd = emacs_open (name, O_RDWR | O_NOCTTY, 0);
 #endif /* O_IGNORE_CTTY */
 
+    tty->name = xstrdup (name);
+    terminal->name = xstrdup (name);
+
     if (fd < 0)
       maybe_fatal (must_succeed, terminal,
                    "Could not open file: %s",
@@ -3422,8 +3425,6 @@
 #endif
 
     file = fdopen (fd, "w+");
-    tty->name = xstrdup (name);
-    terminal->name = xstrdup (name);
     tty->input = file;
     tty->output = file;
   }

Index: ChangeLog
===================================================================
RCS file: /cvsroot/emacs/emacs/src/ChangeLog,v
retrieving revision 1.7190
retrieving revision 1.7191
diff -u -b -r1.7190 -r1.7191
--- ChangeLog   11 Dec 2008 20:38:26 -0000      1.7190
+++ ChangeLog   12 Dec 2008 00:54:31 -0000      1.7191
@@ -1,3 +1,8 @@
+2008-12-12  Dan Nicolaescu  <address@hidden>
+
+       * term.c (init_tty): Move setting the terminal name before the
+       potential user: maybe_fatal.
+
 2008-12-11  Chong Yidong  <address@hidden>
 
        * term.c (tty_free_frame_resources): Renamed from




reply via email to

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