summaryrefslogtreecommitdiffstats
path: root/linux-headers
diff options
context:
space:
mode:
authorPaolo Bonzini2016-02-29 12:18:40 +0100
committerPaolo Bonzini2016-03-07 13:18:28 +0100
commitc586eac33670c198c6c9ceb1419aa99dafcce907 (patch)
tree18ae9a6b76fb6125225bf47e36d668a9960aff4e /linux-headers
parentMerge remote-tracking branch 'remotes/armbru/tags/pull-qapi-2016-03-04' into ... (diff)
downloadqemu-c586eac33670c198c6c9ceb1419aa99dafcce907.tar.gz
qemu-c586eac33670c198c6c9ceb1419aa99dafcce907.tar.xz
qemu-c586eac33670c198c6c9ceb1419aa99dafcce907.zip
log: do not log if QEMU is daemonized but without -D
Commit 96c33a4 ("log: Redirect stderr to logfile if deamonized", 2016-02-22) wanted to move stderr of a daemonized QEMU to the file specified with -D. However, if -D was not passed, the patch had the side effect of not redirecting stderr to /dev/null. This happened because qemu_logfile was set to stderr rather than the expected value of NULL. The fix is simply in the "if" condition of do_qemu_set_log; the "if" for closing the file is also changed to match. Reported-by: Jan Tomko <jtomko@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'linux-headers')
0 files changed, 0 insertions, 0 deletions