summaryrefslogtreecommitdiff
path: root/src/sysdep.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/sysdep.c')
-rw-r--r--src/sysdep.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/sysdep.c b/src/sysdep.c
index 96ab3996953..0a2e2ed1614 100644
--- a/src/sysdep.c
+++ b/src/sysdep.c
@@ -2135,6 +2135,8 @@ sys_signal (int signal_number, signal_handler_t action)
When SYNC_INPUT is set, we don't want SA_RESTART because we need to poll
for pending input so we need long-running syscalls to be interrupted
after a signal that sets the interrupt_input_pending flag. */
+ /* Non-interactive keyboard input goes through stdio, where we always
+ want restartable system calls. */
# if defined (BROKEN_SA_RESTART) || defined(SYNC_INPUT)
if (noninteractive)
# endif