[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH 02/18] qemu-sockets: add Error ** to all functio
From: |
Markus Armbruster |
Subject: |
Re: [Qemu-devel] [PATCH 02/18] qemu-sockets: add Error ** to all functions |
Date: |
Wed, 17 Oct 2012 15:10:42 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.1 (gnu/linux) |
Paolo Bonzini <address@hidden> writes:
> Il 04/10/2012 18:19, Luiz Capitulino ha scritto:
>>> >
>>> > -int unix_listen_opts(QemuOpts *opts)
>>> > +int unix_listen_opts(QemuOpts *opts, Error **errp)
>>> > {
>>> > - fprintf(stderr, "unix sockets are not available on windows\n");
>>> > + error_setg(errp, "unix sockets are not available on windows");
Just gave me a "review WTF", too.
>> As we've discussed in a previous series, this breaks error reporting
>> for unix_listen_opts() until errp is passed _and_ the error is routed
>> to the right direction (in this case stderr).
>>
>> Is this fixed later in this series? If it's not, when do you plan to fix it?
>
> It is (which is why the single patch became 18), and I can move this
> hunk at the end of the series. Note that is just for Windows code and
> should really never run.
Fair enough, but a note in the commit message is in order.
- Re: [Qemu-devel] [PATCH 01/18] error: add error_set_errno and error_setg_errno, (continued)
Re: [Qemu-devel] [PATCH 01/18] error: add error_set_errno and error_setg_errno, Markus Armbruster, 2012/10/17
[Qemu-devel] [PATCH 02/18] qemu-sockets: add Error ** to all functions, Paolo Bonzini, 2012/10/03
[Qemu-devel] [PATCH 03/18] qemu-sockets: unix_listen and unix_connect are portable, Paolo Bonzini, 2012/10/03
[Qemu-devel] [PATCH 05/18] migration: avoid using error_is_set, Paolo Bonzini, 2012/10/03
[Qemu-devel] [PATCH 04/18] qemu-sockets: add nonblocking connect for Unix sockets, Paolo Bonzini, 2012/10/03