From: mpi Date: Wed, 23 Jul 2014 20:49:53 +0000 (+0000) Subject: Set the console input in polling mode before entering ukc. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=51cd77f432ab40a20d44c93e0335540267eaf5bd;p=openbsd Set the console input in polling mode before entering ukc. ok miod@, deraadt@, shadchin@ --- diff --git a/sys/kern/subr_userconf.c b/sys/kern/subr_userconf.c index 4bc7e6254f6..6f570b8fb6e 100644 --- a/sys/kern/subr_userconf.c +++ b/sys/kern/subr_userconf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: subr_userconf.c,v 1.41 2014/07/13 15:29:04 tedu Exp $ */ +/* $OpenBSD: subr_userconf.c,v 1.42 2014/07/23 20:49:53 mpi Exp $ */ /* * Copyright (c) 1996-2001 Mats O Jansson @@ -1348,11 +1348,14 @@ user_config(void) userconf_init(); printf("User Kernel Config\n"); + cnpollc(1); while (1) { printf("UKC> "); if (getsn(userconf_cmdbuf, sizeof(userconf_cmdbuf)) > 0 && userconf_parse(userconf_cmdbuf)) break; } + cnpollc(0); + printf("Continuing...\n"); }