← Commit list

5e38cd910

Rob Landley
Rob Landley
2008-10-14
FAILED Duration: 37s

Subject

Escape sequences sent over serial links don't come in as a block, so poll needs to pause a bit to make sure the next character has time to come in.

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

editors/vi.c+1 -1
@@ -2280,7 +2280,7 @@ static char readit(void) // read (maybe cursor) key from stdin
struct pollfd pfd;
pfd.fd = 0;
pfd.events = POLLIN;
- if (0 < safe_poll(&pfd, 1, 0)
+ if (0 < safe_poll(&pfd, 1, 300)
&& 0 < safe_read(0, readbuffer + n, 1))
n++;