From 109ed219afc4be5cc5c22f912bb125d1fb102bb2 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Tue, 29 Jun 2010 14:42:48 +0100 Subject: [PATCH] stubdom: fix creation hang by not initialising xenfb_pv if nographic Contributed-by: Eric Chanudet Modified-by: Ian Jackson Signed-off-by: Ian Jackson --- vl.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/vl.c b/vl.c index 404d67a67..ad8c0d02b 100644 --- a/vl.c +++ b/vl.c @@ -5967,16 +5967,16 @@ int main(int argc, char **argv, char **envp) /* just use the first displaystate for the moment */ ds = display_state; /* terminal init */ -#ifdef CONFIG_STUBDOM - if (xenfb_pv_display_init(ds) == 0) { - } else -#endif if (nographic) { if (curses) { fprintf(stderr, "fatal: -nographic can't be used with -curses\n"); exit(1); } } else { +#ifdef CONFIG_STUBDOM + if (xenfb_pv_display_init(ds) == 0) { + } else +#endif #if defined(CONFIG_CURSES) if (curses) { /* At the moment curses cannot be used with other displays */ -- 2.39.5