]> Git Repo - qemu.git/blobdiff - qemu-char.c
disallow -daemonize usage of stdio (curses display, -nographic, -serial stdio etc)
[qemu.git] / qemu-char.c
index c6382a93f5f5938c92b0102e984e90f74ef4dcba..331ad5c087e900397aaffc9fec8bfba8e18f117e 100644 (file)
@@ -772,6 +772,10 @@ static CharDriverState *qemu_chr_open_stdio(QemuOpts *opts)
     if (stdio_nb_clients >= STDIO_MAX_CLIENTS) {
         return NULL;
     }
+    if (is_daemonized()) {
+        error_report("cannot use stdio with -daemonize");
+        return NULL;
+    }
     if (stdio_nb_clients == 0) {
         old_fd0_flags = fcntl(0, F_GETFL);
         tcgetattr (0, &oldtty);
This page took 0.02953 seconds and 4 git commands to generate.