summaryrefslogtreecommitdiffstats
path: root/src/core/console.c
diff options
context:
space:
mode:
authorMichael Brown2006-12-27 23:59:40 +0100
committerMichael Brown2006-12-27 23:59:40 +0100
commitb6def29f2be0d6b2d84085eeff74299a04f99b33 (patch)
treea7a65e846dbcc25c8fc767f0084cb4b05edaa616 /src/core/console.c
parentAdded times to start/stop log messages (diff)
downloadipxe-b6def29f2be0d6b2d84085eeff74299a04f99b33.tar.gz
ipxe-b6def29f2be0d6b2d84085eeff74299a04f99b33.tar.xz
ipxe-b6def29f2be0d6b2d84085eeff74299a04f99b33.zip
Keep running the main processing loop while waiting for input.
Diffstat (limited to 'src/core/console.c')
-rw-r--r--src/core/console.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/core/console.c b/src/core/console.c
index cd3239d6..830f4539 100644
--- a/src/core/console.c
+++ b/src/core/console.c
@@ -1,5 +1,6 @@
#include "stddef.h"
#include "console.h"
+#include <gpxe/process.h>
/** @file */
@@ -97,6 +98,11 @@ int getchar ( void ) {
* less CPU time in a VMware session.
*/
cpu_nap();
+
+ /* Keep processing background tasks while we wait for
+ * input.
+ */
+ step();
console = has_input();
if ( console && console->getchar )