svn commit: trunk/busybox/editors

landley at busybox.net landley at busybox.net
Thu Oct 16 06:34:10 UTC 2008


Author: landley
Date: 2008-10-15 23:34:10 -0700 (Wed, 15 Oct 2008)
New Revision: 23692

Log:
Confirmed that on Linux the serial interrupt takes precedence over the timer
interrupt, so we don't need to worry about scheduler delays.  This means the
delay can be trimmed down to 25 miliseconds.  Add comment while at it.


Modified:
   trunk/busybox/editors/vi.c


Changeset:
Modified: trunk/busybox/editors/vi.c
===================================================================
--- trunk/busybox/editors/vi.c	2008-10-15 14:50:14 UTC (rev 23691)
+++ trunk/busybox/editors/vi.c	2008-10-16 06:34:10 UTC (rev 23692)
@@ -2280,8 +2280,9 @@
 					struct pollfd pfd;
 					pfd.fd = 0;
 					pfd.events = POLLIN;
-					// Rob needed 300ms timeout on qemu
-					if (safe_poll(&pfd, 1, /*timeout:*/ 300)) {
+					// Timeout is needed to reconnect escape sequences split
+					// up by transmission over a serial console.
+					if (safe_poll(&pfd, 1, 25)) {
 						if (safe_read(0, readbuffer + n, 1) <= 0)
 							goto error;
 						n++;




More information about the busybox-cvs mailing list