summaryrefslogtreecommitdiff
path: root/shell/ash.c
diff options
context:
space:
mode:
Diffstat (limited to 'shell/ash.c')
-rw-r--r--shell/ash.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/shell/ash.c b/shell/ash.c
index 780900b40..b9bdd64e5 100644
--- a/shell/ash.c
+++ b/shell/ash.c
@@ -11388,9 +11388,11 @@ preadfd(void)
11388 nr = read_line_input(line_input_state, cmdedit_prompt, buf, IBUFSIZ); 11388 nr = read_line_input(line_input_state, cmdedit_prompt, buf, IBUFSIZ);
11389 if (nr == 0) { 11389 if (nr == 0) {
11390 /* ^C pressed, "convert" to SIGINT */ 11390 /* ^C pressed, "convert" to SIGINT */
11391 write(STDOUT_FILENO, "^C", 2);
11392# if !ENABLE_PLATFORM_MINGW32 11391# if !ENABLE_PLATFORM_MINGW32
11392 write(STDOUT_FILENO, "^C", 2);
11393 raise(SIGINT); 11393 raise(SIGINT);
11394# else
11395 raise_interrupt();
11394# endif 11396# endif
11395 if (trap[SIGINT]) { 11397 if (trap[SIGINT]) {
11396 buf[0] = '\n'; 11398 buf[0] = '\n';