diff options
Diffstat (limited to 'src/keyboard.c')
| -rw-r--r-- | src/keyboard.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/keyboard.c b/src/keyboard.c index 42c26982086..bf441efef90 100644 --- a/src/keyboard.c +++ b/src/keyboard.c | |||
| @@ -6964,7 +6964,7 @@ tty_read_avail_input (struct terminal *terminal, | |||
| 6964 | #elif defined USG || defined CYGWIN | 6964 | #elif defined USG || defined CYGWIN |
| 6965 | /* Read some input if available, but don't wait. */ | 6965 | /* Read some input if available, but don't wait. */ |
| 6966 | n_to_read = sizeof cbuf; | 6966 | n_to_read = sizeof cbuf; |
| 6967 | fcntl (fileno (tty->input), F_SETFL, O_NDELAY); | 6967 | fcntl (fileno (tty->input), F_SETFL, O_NONBLOCK); |
| 6968 | #else | 6968 | #else |
| 6969 | # error "Cannot read without possibly delaying" | 6969 | # error "Cannot read without possibly delaying" |
| 6970 | #endif | 6970 | #endif |
| @@ -6998,7 +6998,7 @@ tty_read_avail_input (struct terminal *terminal, | |||
| 6998 | } | 6998 | } |
| 6999 | while ( | 6999 | while ( |
| 7000 | /* We used to retry the read if it was interrupted. | 7000 | /* We used to retry the read if it was interrupted. |
| 7001 | But this does the wrong thing when O_NDELAY causes | 7001 | But this does the wrong thing when O_NONBLOCK causes |
| 7002 | an EAGAIN error. Does anybody know of a situation | 7002 | an EAGAIN error. Does anybody know of a situation |
| 7003 | where a retry is actually needed? */ | 7003 | where a retry is actually needed? */ |
| 7004 | #if 0 | 7004 | #if 0 |