diff options
author | Glenn Morris <rgm@gnu.org> | 2018-10-03 09:23:16 -0700 |
---|---|---|
committer | Glenn Morris <rgm@gnu.org> | 2018-10-03 09:23:16 -0700 |
commit | 48adb87bcb0f27e2d18fc6523c472af4916d5884 (patch) | |
tree | 0299f7ce336e0d21fe902af6809798e3bb2045a7 /src/term.c | |
parent | 51f0cccdde9bd1679e20f35d30e39e872ce6513a (diff) | |
parent | 7296b6fbf27aeae76ea63ab2d9d9f2e46491b971 (diff) | |
download | emacs-48adb87bcb0f27e2d18fc6523c472af4916d5884.tar.gz |
Merge from origin/emacs-26
7296b6f Improve cl-do, cl-do* docstrings
d416109 Avoid returning early in 'while-no-input' due to subprocesses
e8a4d94 Cleanup when opening a new terminal fails. (Bug#32794)
# Conflicts:
# etc/NEWS
Diffstat (limited to 'src/term.c')
-rw-r--r-- | src/term.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/term.c b/src/term.c index ce24f6915fc..852dc23bd60 100644 --- a/src/term.c +++ b/src/term.c @@ -4008,6 +4008,7 @@ init_tty (const char *name, const char *terminal_type, bool must_succeed) char const *diagnostic = (fd < 0) ? "Could not open file: %s" : "Not a tty device: %s"; emacs_close (fd); + delete_terminal_internal (terminal); maybe_fatal (must_succeed, terminal, diagnostic, diagnostic, name); } |