summary refs log tree commit diff stats
path: root/scripts/dump-guest-memory.py
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2016-02-29 12:18:40 +0100
committerPaolo Bonzini <pbonzini@redhat.com>2016-03-07 13:18:28 +0100
commitc586eac33670c198c6c9ceb1419aa99dafcce907 (patch)
tree18ae9a6b76fb6125225bf47e36d668a9960aff4e /scripts/dump-guest-memory.py
parent1464ad45cd6cdeb0b5c1a54d3d3791396e47e52f (diff)
downloadfocaccia-qemu-c586eac33670c198c6c9ceb1419aa99dafcce907.tar.gz
focaccia-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 'scripts/dump-guest-memory.py')
0 files changed, 0 insertions, 0 deletions