From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:48850) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RJlNb-00006b-9V for qemu-devel@nongnu.org; Fri, 28 Oct 2011 08:17:47 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RJlNa-00006v-BQ for qemu-devel@nongnu.org; Fri, 28 Oct 2011 08:17:47 -0400 Received: from mx1.redhat.com ([209.132.183.28]:9606) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RJlNa-00006R-4X for qemu-devel@nongnu.org; Fri, 28 Oct 2011 08:17:46 -0400 Message-ID: <4EAA9D65.1080108@redhat.com> Date: Fri, 28 Oct 2011 14:17:41 +0200 From: Paolo Bonzini MIME-Version: 1.0 References: <1319797077-25441-1-git-send-email-pbonzini@redhat.com> <1319797077-25441-5-git-send-email-pbonzini@redhat.com> <67C69C1A-BA12-4DD6-8CFE-F97011B68258@irisa.fr> <4EAA98B4.4030800@redhat.com> <90216E5F-CF18-4A44-BBCF-0DFB68259296@irisa.fr> In-Reply-To: <90216E5F-CF18-4A44-BBCF-0DFB68259296@irisa.fr> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH 4/4] qemu-nbd: do not start the block layer in the parent List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Pierre Riteau Cc: qemu-devel@nongnu.org On 10/28/2011 02:16 PM, Pierre Riteau wrote: > Yes, it would be better if we could have error output on stderr. Now, > "simple" errors such as a missing image file (or wrong path to the > image) are reported to syslog instead. It could be the source of some > headaches... > > Is there a way we could have the child send the error to the parent > over a pipe and have the parent print it on stderr? A way could be to change the fork() into a separate thread, so that you can daemonize as soon as you accept the socket rather than having to do it early. Paolo