]> git.ipfire.org Git - thirdparty/qemu.git/commit
util/log: re-allow switching away from stderr log file
authorFiona Ebner <f.ebner@proxmox.com>
Wed, 4 Oct 2023 12:44:46 +0000 (14:44 +0200)
committerMichael Tokarev <mjt@tls.msk.ru>
Tue, 10 Oct 2023 04:41:01 +0000 (07:41 +0300)
commitd8b9e0c8bcbd3f58512672ad260ef86e0d87cefe
tree5cfb51c14c7bc15c03bea67877703f4f1adc3ba8
parent0f1d63d8241e7b28afcb3b705b17f6df29888116
util/log: re-allow switching away from stderr log file

Commit 59bde21374 ("util/log: do not close and reopen log files when
flags are turned off") prevented switching away from stderr on a
subsequent invocation of qemu_set_log_internal(). This prevented
switching away from stderr with the 'logfile' monitor command as well
as an invocation like
> ./qemu-system-x86_64 -trace 'qemu_mutex_lock,file=log'
from opening the specified log file.

Fixes: 59bde21374 ("util/log: do not close and reopen log files when flags are turned off")
Signed-off-by: Fiona Ebner <f.ebner@proxmox.com>
Message-ID: <20231004124446.491481-1-f.ebner@proxmox.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
(cherry picked from commit f05142d511e86d8e97967d21f205d990dfc634de)
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
util/log.c