summaryrefslogtreecommitdiff
path: root/src/cm.c
diff options
context:
space:
mode:
authorKaroly Lorentey <lorentey@elte.hu>2003-12-29 08:28:35 +0000
committerKaroly Lorentey <lorentey@elte.hu>2003-12-29 08:28:35 +0000
commitb2af72d2f0da11c271cac6fc823053d0018068b2 (patch)
tree3eb8facc529c3360f7c85416cc93249fb9b6a337 /src/cm.c
parent9f729af551e991e5f6d49f329674f6802450d70f (diff)
downloademacs-b2af72d2f0da11c271cac6fc823053d0018068b2.tar.gz
Make sure secondary frames are deleted when emacsclient quits.
lisp/server.el (server-sentinel): Delete frame if alive. Fix delq invocation on server-frames. (server-process-filter, server-buffer-done): Fix delq invocation on server-frames. src/cm.c (cmputc): Abort on write error, see what happens. src/keyboard.c (read_avail_input): Do delete_tty on read errors. git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-21
Diffstat (limited to 'src/cm.c')
-rw-r--r--src/cm.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/cm.c b/src/cm.c
index 95aa6afdcd6..1094e3047d6 100644
--- a/src/cm.c
+++ b/src/cm.c
@@ -70,7 +70,8 @@ cmputc (c)
{
if (TTY_TERMSCRIPT (current_tty))
putc (c & 0177, TTY_TERMSCRIPT (current_tty));
- putc (c & 0177, TTY_OUTPUT (current_tty));
+ if (putc (c & 0177, TTY_OUTPUT (current_tty)) == EOF)
+ abort (); /* XXX For testing only! */
return c;
}