aboutsummaryrefslogtreecommitdiffstats
path: root/vl.c
diff options
context:
space:
mode:
Diffstat (limited to 'vl.c')
-rw-r--r--vl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/vl.c b/vl.c
index 85bcc84df..d77b47c6f 100644
--- a/vl.c
+++ b/vl.c
@@ -3509,6 +3509,8 @@ int main(int argc, char **argv, char **envp)
if (default_vga)
vga_interface_type = VGA_CIRRUS;
+ socket_init();
+
if (qemu_opts_foreach(&qemu_chardev_opts, chardev_init_func, NULL, 1) != 0)
exit(1);
#ifdef CONFIG_LINUX
@@ -3617,8 +3619,6 @@ int main(int argc, char **argv, char **envp)
}
configure_icount(icount_option);
- socket_init();
-
if (net_init_clients() < 0) {
exit(1);
}