summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans de Goede <hdegoede@redhat.com>2011-03-17 12:54:37 +0100
committerHans de Goede <hdegoede@redhat.com>2011-03-17 14:51:06 +0100
commitd64c3ebb1034a14ff28a895d89ca074830c47255 (patch)
tree0d49438d30387dcf23aac5c5d667e3d545c2faf4
parent172b0dfa400f2b929b514123a0af767f74416184 (diff)
vdagentd: Don't open virtio port if creating uinput fails
There is little use in opening the virtio port when uinput creation has failed, since we will exit as soon as control is returned back to the main loop.
-rw-r--r--vdagentd.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/vdagentd.c b/vdagentd.c
index 9b2e4f3..f5a2e75 100644
--- a/vdagentd.c
+++ b/vdagentd.c
@@ -362,6 +362,7 @@ static void check_xorg_resolution(void) {
fprintf(logfile, "Fatal uinput error\n");
retval = 1;
quit = 1;
+ return;
}
if (!virtio_port) {