Mercurial > emacs
diff src/term.c @ 100370:c611d83003ce
(init_tty): Move setting the terminal name before the
potential user: maybe_fatal.
author | Dan Nicolaescu <dann@ics.uci.edu> |
---|---|
date | Fri, 12 Dec 2008 00:54:31 +0000 |
parents | b6b22701e97c |
children | dab9cf44bf3f |
line wrap: on
line diff
--- a/src/term.c Fri Dec 12 00:49:39 2008 +0000 +++ b/src/term.c Fri Dec 12 00:54:31 2008 +0000 @@ -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; }