Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
97c6058a
Commit
97c6058a
authored
Dec 12, 2008
by
Dan Nicolaescu
Browse files
(init_tty): Move setting the terminal name before the
potential user: maybe_fatal.
parent
2cf6bf63
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
2 deletions
+8
-2
src/ChangeLog
src/ChangeLog
+5
-0
src/term.c
src/term.c
+3
-2
No files found.
src/ChangeLog
View file @
97c6058a
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
...
...
src/term.c
View file @
97c6058a
...
...
@@ -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
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment