On 16/03/2016 12:20, Denis V. Lunev wrote:
> The question here is the following actually.
>
> Should we continue to keep writing 'stderr' output to the log file
> when we have cleared all log levels. If the answer is 'yes',
> original == your code is correct while my is wrong. In the
> other cas
On 03/14/2016 05:28 PM, Paolo Bonzini wrote:
On 14/03/2016 12:21, Denis V. Lunev wrote:
/* In case -D is given do not redirect stderr to /dev/null */
-if (!qemu_logfile) {
+if (!qemu_logfile || qemu_logfile == stderr) {
dup2(fd, 2);
This relies on knowle
On 14/03/2016 12:21, Denis V. Lunev wrote:
> /* In case -D is given do not redirect stderr to /dev/null */
> -if (!qemu_logfile) {
> +if (!qemu_logfile || qemu_logfile == stderr) {
> dup2(fd, 2);
This relies on knowledge that fileno(qemu_logfile) is dup-ed t