qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH 13/25] vnc: add error propagation to vnc_display


From: Markus Armbruster
Subject: Re: [Qemu-devel] [PATCH 13/25] vnc: add error propagation to vnc_display_open
Date: Fri, 19 Oct 2012 09:49:39 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1 (gnu/linux)

Paolo Bonzini <address@hidden> writes:

> Il 17/10/2012 17:17, Markus Armbruster ha scritto:
>>> > +fail:
>>> > +    if (!error_is_set(errp)) {
>>> > +        error_set(errp, QERR_VNC_SERVER_FAILED, display);
>> How can we get here with no error set?
>> 
>> 1. !vnc_display (first goto fail).
>
> This can be fixed up to give a separate error.
>
>> 2. unit_connect() or inet_listen() return failure, but don't set error.
>> 
>> 3. unix_listen() or inet_listen() return failure, but don't set error.
>> 
>> Can 2. or 3. happen?
>> 
>> If yes, these functions suck.  If no, let's fix up 1. to set a suitable
>> error, and drop the uninformative generic error here.
>> 
>
> It can at this point in the series, but not at the end.

Feel free to make the fix up at the end then.

> I tried to split this one into many commits, but I wasn't sure it was
> worth to make a mini-series out of one function.  In retrospect
>  it was.

Review of a long series is unrewarding when the patches are all perfect
;)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]