Commit 97c6058a authored by Dan Nicolaescu's avatar Dan Nicolaescu
Browse files

(init_tty): Move setting the terminal name before the

potential user: maybe_fatal.
parent 2cf6bf63
2008-12-12 Dan Nicolaescu <dann@ics.uci.edu>
* term.c (init_tty): Move setting the terminal name before the
potential user: maybe_fatal.
2008-12-11 Chong Yidong <cyd@stupidchicken.com>
* term.c (tty_free_frame_resources): Renamed from
......
......@@ -3402,6 +3402,9 @@ init_tty (char *name, char *terminal_type, int must_succeed)
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 @@ init_tty (char *name, char *terminal_type, int must_succeed)
#endif
file = fdopen (fd, "w+");
tty->name = xstrdup (name);
terminal->name = xstrdup (name);
tty->input = file;
tty->output = file;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment