]> git.ipfire.org Git - thirdparty/qemu.git/commit - qemu-char.c
qemu-char: convert stdio backend to data-driven creation
authorPaolo Bonzini <pbonzini@redhat.com>
Tue, 29 Sep 2015 13:40:28 +0000 (15:40 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 19 Oct 2015 08:13:07 +0000 (10:13 +0200)
commit8c84b25d975870bbed2e089fe61e037c58a69854
tree943e7522772a1d8a49d0d4f6b52c6a079a957f45
parent0498790173e462ac3a7e4e0f3608704b8382dd10
qemu-char: convert stdio backend to data-driven creation

The backend now always returns errors via the Error* argument.
This avoids a double error message.  Before:

    qemu-system-x86_64: -chardev stdio,id=base: cannot use stdio with -daemonize
    qemu-system-x86_64: -chardev stdio,id=base: Failed to create chardev

After:

    qemu-system-x86_64: -chardev stdio,id=base: cannot use stdio with -daemonize

Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
qemu-char.c