diff options
-rw-r--r-- | handlekeys.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/handlekeys.c b/handlekeys.c index 2d30d53..d365496 100644 --- a/handlekeys.c +++ b/handlekeys.c | |||
@@ -258,12 +258,7 @@ void handle_keys(long extra, | |||
258 | // If that's not true (which is entirely likely), then we have to get | 258 | // If that's not true (which is entirely likely), then we have to get |
259 | // complicated with circular buffers and stuff, or just one byte at a time. | 259 | // complicated with circular buffers and stuff, or just one byte at a time. |
260 | j = read(0, &buffer[buffIndex], sizeof(buffer) - (buffIndex + 1)); | 260 | j = read(0, &buffer[buffIndex], sizeof(buffer) - (buffIndex + 1)); |
261 | if (j < 0) // An error happened. | 261 | if (j < 0) perror_exit("input error"); |
262 | { | ||
263 | // For now, just ignore errors. | ||
264 | fprintf(stderr, "input error on %d\n", p); | ||
265 | fflush(stderr); | ||
266 | } | ||
267 | else if (j == 0) // End of file. | 262 | else if (j == 0) // End of file. |
268 | { | 263 | { |
269 | stillRunning = 0; | 264 | stillRunning = 0; |