aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/keyboard.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/keyboard.c b/src/keyboard.c
index ad257324d89..5f747183ce6 100644
--- a/src/keyboard.c
+++ b/src/keyboard.c
@@ -6718,7 +6718,12 @@ read_avail_input (expected)
6718 /* ??? Is it really right to send the signal just to this process 6718 /* ??? Is it really right to send the signal just to this process
6719 rather than to the whole process group? 6719 rather than to the whole process group?
6720 Perhaps on systems with FIONREAD Emacs is alone in its group. */ 6720 Perhaps on systems with FIONREAD Emacs is alone in its group. */
6721 kill (getpid (), SIGHUP); 6721 {
6722 if (! noninteractive)
6723 kill (getpid (), SIGHUP);
6724 else
6725 n_to_read = 0;
6726 }
6722 if (n_to_read == 0) 6727 if (n_to_read == 0)
6723 return 0; 6728 return 0;
6724 if (n_to_read > sizeof cbuf) 6729 if (n_to_read > sizeof cbuf)
@@ -9421,6 +9426,8 @@ read_key_sequence (keybuf, bufsize, prompt, dont_downcase_last,
9421 9426
9422 keybuf[t - 1] = new_key; 9427 keybuf[t - 1] = new_key;
9423 mock_input = max (t, mock_input); 9428 mock_input = max (t, mock_input);
9429 fkey.start = fkey.end = KEYMAPP (fkey.map) ? 0 : bufsize + 1;
9430 keytran.start = keytran.end = KEYMAPP (keytran.map) ? 0 : bufsize + 1;
9424 9431
9425 goto replay_sequence; 9432 goto replay_sequence;
9426 } 9433 }