From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:42655) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zqdnc-0006ay-MZ for qemu-devel@nongnu.org; Mon, 26 Oct 2015 05:10:44 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zqdna-0001cZ-FZ for qemu-devel@nongnu.org; Mon, 26 Oct 2015 05:10:40 -0400 Received: from mailhub.sw.ru ([195.214.232.25]:46308 helo=relay.sw.ru) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zqdna-0001cC-1n for qemu-devel@nongnu.org; Mon, 26 Oct 2015 05:10:38 -0400 From: "Denis V. Lunev" Date: Mon, 26 Oct 2015 12:10:21 +0300 Message-Id: <1445850626-29407-5-git-send-email-den@openvz.org> In-Reply-To: <1445850626-29407-1-git-send-email-den@openvz.org> References: <1445850626-29407-1-git-send-email-den@openvz.org> Subject: [Qemu-devel] [PATCH 04/11] trace: no need to call trace_backend_init in different branches now List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: peter.maydell@linaro.org, qemu-devel@nongnu.org, armbru@redhat.com, stefanha@redhat.com, "Denis V. Lunev" , pbonzini@redhat.com original idea to split calling locations was to trace tracing thread in the final child process according to commit 8a745f2a9296ad2cf6bda33534ed298f2625a4ad Author: Michael Mueller Date: Mon Sep 23 16:36:54 2013 +0200 os_daemonize is now on top of both locations. Drop unneeded ifs. Signed-off-by: Denis V. Lunev --- vl.c | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/vl.c b/vl.c index b1ddd3f..7ce9d70 100644 --- a/vl.c +++ b/vl.c @@ -4083,10 +4083,8 @@ int main(int argc, char **argv, char **envp) qemu_set_log(mask); } - if (!is_daemonized()) { - if (!trace_init_backends()) { - exit(1); - } + if (!trace_init_backends()) { + exit(1); } /* If no data_dir is specified then try to find it relative to the @@ -4635,12 +4633,6 @@ int main(int argc, char **argv, char **envp) os_setup_post(); - if (is_daemonized()) { - if (!trace_init_backends()) { - exit(1); - } - } - main_loop(); bdrv_close_all(); pause_all_vcpus(); -- 2.1.4