From c626a5578aa16c17ef68c1b15ed53828080d9d90 Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Sun, 13 Sep 2009 17:35:51 +1000 Subject: [PATCH] xfree86: fix VT_WAITACTIVE control flow (#11477) Move misplaced } to get the flow of if (!ShareVTs) { VT_ACTIVATE VT_WAITACTIVE } X.Org Bug 11477 Signed-off-by: Peter Hutterer Acked-by: Daniel Stone --- hw/xfree86/os-support/linux/lnx_init.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/xfree86/os-support/linux/lnx_init.c b/hw/xfree86/os-support/linux/lnx_init.c index 5a6db8081..f84c6149e 100644 --- a/hw/xfree86/os-support/linux/lnx_init.c +++ b/hw/xfree86/os-support/linux/lnx_init.c @@ -296,11 +296,11 @@ xf86OpenConsole(void) if (ioctl(xf86Info.consoleFd, VT_ACTIVATE, xf86Info.vtno) < 0) xf86Msg(X_WARNING, "xf86OpenConsole: VT_ACTIVATE failed %s\n", strerror(errno)); - } if (ioctl(xf86Info.consoleFd, VT_WAITACTIVE, xf86Info.vtno) < 0) xf86Msg(X_WARNING, "xf86OpenConsole: VT_WAITACTIVE failed %s\n", strerror(errno)); + } } return; }