From 51cd77f432ab40a20d44c93e0335540267eaf5bd Mon Sep 17 00:00:00 2001 From: mpi Date: Wed, 23 Jul 2014 20:49:53 +0000 Subject: [PATCH] Set the console input in polling mode before entering ukc. ok miod@, deraadt@, shadchin@ --- sys/kern/subr_userconf.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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"); } -- 2.20.1