diff options
Diffstat (limited to 'miscutils/bc.c')
-rw-r--r-- | miscutils/bc.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/miscutils/bc.c b/miscutils/bc.c index 02a61ac49..046bad98e 100644 --- a/miscutils/bc.c +++ b/miscutils/bc.c | |||
@@ -7424,7 +7424,9 @@ static int xc_vm_init(const char *env_len) | |||
7424 | // from stdin is not interrupted by ^C either, | 7424 | // from stdin is not interrupted by ^C either, |
7425 | // it restarts, thus fgetc() does not return on ^C. | 7425 | // it restarts, thus fgetc() does not return on ^C. |
7426 | // (This problem manifests only if line editing is disabled) | 7426 | // (This problem manifests only if line editing is disabled) |
7427 | # if !ENABLE_PLATFORM_MINGW32 | ||
7427 | signal_SA_RESTART_empty_mask(SIGINT, record_signo); | 7428 | signal_SA_RESTART_empty_mask(SIGINT, record_signo); |
7429 | # endif | ||
7428 | 7430 | ||
7429 | // Without SA_RESTART, this exhibits a bug: | 7431 | // Without SA_RESTART, this exhibits a bug: |
7430 | // "while (1) print 1" and try ^C-ing it. | 7432 | // "while (1) print 1" and try ^C-ing it. |