diff options
| author | Karoly Lorentey | 2003-12-29 08:28:35 +0000 |
|---|---|---|
| committer | Karoly Lorentey | 2003-12-29 08:28:35 +0000 |
| commit | b2af72d2f0da11c271cac6fc823053d0018068b2 (patch) | |
| tree | 3eb8facc529c3360f7c85416cc93249fb9b6a337 /src | |
| parent | 9f729af551e991e5f6d49f329674f6802450d70f (diff) | |
| download | emacs-b2af72d2f0da11c271cac6fc823053d0018068b2.tar.gz emacs-b2af72d2f0da11c271cac6fc823053d0018068b2.zip | |
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')
| -rw-r--r-- | src/cm.c | 3 | ||||
| -rw-r--r-- | src/keyboard.c | 4 |
2 files changed, 4 insertions, 3 deletions
| @@ -70,7 +70,8 @@ cmputc (c) | |||
| 70 | { | 70 | { |
| 71 | if (TTY_TERMSCRIPT (current_tty)) | 71 | if (TTY_TERMSCRIPT (current_tty)) |
| 72 | putc (c & 0177, TTY_TERMSCRIPT (current_tty)); | 72 | putc (c & 0177, TTY_TERMSCRIPT (current_tty)); |
| 73 | putc (c & 0177, TTY_OUTPUT (current_tty)); | 73 | if (putc (c & 0177, TTY_OUTPUT (current_tty)) == EOF) |
| 74 | abort (); /* XXX For testing only! */ | ||
| 74 | return c; | 75 | return c; |
| 75 | } | 76 | } |
| 76 | 77 | ||
diff --git a/src/keyboard.c b/src/keyboard.c index 217cc290464..1bb9564060f 100644 --- a/src/keyboard.c +++ b/src/keyboard.c | |||
| @@ -6689,7 +6689,7 @@ read_avail_input (expected) | |||
| 6689 | if (! tty_list->next) | 6689 | if (! tty_list->next) |
| 6690 | kill (0, SIGHUP); /* This was the last terminal. */ | 6690 | kill (0, SIGHUP); /* This was the last terminal. */ |
| 6691 | else | 6691 | else |
| 6692 | ; /* XXX tty should be closed here. */ | 6692 | delete_tty (tty); /* XXX I wonder if this is safe here. */ |
| 6693 | } | 6693 | } |
| 6694 | #if defined (AIX) && (! defined (aix386) && defined (_BSD)) | 6694 | #if defined (AIX) && (! defined (aix386) && defined (_BSD)) |
| 6695 | /* The kernel sometimes fails to deliver SIGHUP for ptys. | 6695 | /* The kernel sometimes fails to deliver SIGHUP for ptys. |
| @@ -6701,7 +6701,7 @@ read_avail_input (expected) | |||
| 6701 | if (! tty_list->next) | 6701 | if (! tty_list->next) |
| 6702 | kill (0, SIGHUP); /* This was the last terminal. */ | 6702 | kill (0, SIGHUP); /* This was the last terminal. */ |
| 6703 | else | 6703 | else |
| 6704 | ; /* XXX tty should be closed here. */ | 6704 | delete_tty (tty); /* XXX I wonder if this is safe here. */ |
| 6705 | } | 6705 | } |
| 6706 | #endif | 6706 | #endif |
| 6707 | } | 6707 | } |