aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/cm.c3
-rw-r--r--src/keyboard.c4
2 files changed, 4 insertions, 3 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)
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 }