Received: from eggs.gnu.org ([208.118.235.92]:42077) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TP7UT-0000RN-JM for qemu-devel@nongnu.org; Fri, 19 Oct 2012 03:59:37 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TP7UL-0000Ba-Lr for qemu-devel@nongnu.org; Fri, 19 Oct 2012 03:59:33 -0400 Received: from mx1.redhat.com ([209.132.183.28]:18662) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TP7UL-0000BQ-Ce for qemu-devel@nongnu.org; Fri, 19 Oct 2012 03:59:25 -0400 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id q9J7xO88029534 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Fri, 19 Oct 2012 03:59:24 -0400 From: Markus Armbruster References: <1349877786-23514-1-git-send-email-pbonzini@redhat.com> <1349877786-23514-16-git-send-email-pbonzini@redhat.com> <87y5j5w1hp.fsf@blackfin.pond.sub.org> <507ED3D1.6000405@redhat.com> Date: Fri, 19 Oct 2012 09:59:22 +0200 In-Reply-To: <507ED3D1.6000405@redhat.com> (Paolo Bonzini's message of "Wed, 17 Oct 2012 17:50:41 +0200") Message-ID: <87fw5alwo5.fsf@blackfin.pond.sub.org> MIME-Version: 1.0 Content-Type: text/plain Subject: Re: [Qemu-devel] [PATCH 15/25] qemu-sockets: add error propagation to inet_connect_addr List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paolo Bonzini Cc: qemu-devel@nongnu.org, lcapitulino@redhat.com Paolo Bonzini writes: > Il 17/10/2012 17:40, Markus Armbruster ha scritto: >>> > if (s->current_addr) { >>> > while (s->current_addr->ai_next != NULL && s->fd < 0) { >>> > s->current_addr = s->current_addr->ai_next; >>> > - s->fd = inet_connect_addr(s->current_addr, &in_progress, s); >>> > + s->fd = inet_connect_addr(s->current_addr, &in_progress, s, NULL); >> Doesn't this drop error messages? > > Depends on what you mean by drop. The error messages previously were > sent to stdio, hidden in a log file or just invisible, depending on how > QEMU is run. (This is just for outgoing migration currently, so you > cannot rely on stdio as you can for command-line parsing). I agree the existing error reporting is very bad, but even very bad reporting is (slightly) better than no error reporting. Moreover, there's a use case where errors are reported in the correct place now: -monitor stdio. I'm afraid your patch hurts it. >> If yes, but it's healed later in the series, the temporary breakage >> still needs to be spelled out in the commit message. > > No, it's not healed, which is why it's mentioned in the commit message > that future work is needed. I really hate "reward" submissions of tons of useful work with demands for more even work... but here goes anyway: what's your take on completing the job? Straightfoward, or another ton of work?