svn commit: trunk/busybox/editors

landley at busybox.net landley at busybox.net
Tue Oct 14 08:44:09 UTC 2008


Author: landley
Date: 2008-10-14 01:44:09 -0700 (Tue, 14 Oct 2008)
New Revision: 23669

Log:
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.


Modified:
   trunk/busybox/editors/vi.c


Changeset:
Modified: trunk/busybox/editors/vi.c
===================================================================
--- trunk/busybox/editors/vi.c	2008-10-14 01:42:33 UTC (rev 23668)
+++ trunk/busybox/editors/vi.c	2008-10-14 08:44:09 UTC (rev 23669)
@@ -2280,7 +2280,7 @@
 					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++;
 




More information about the busybox-cvs mailing list