[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-block] [Qemu-devel] [PATCH 2/7] jobs: canonize Error object
From: |
Max Reitz |
Subject: |
Re: [Qemu-block] [Qemu-devel] [PATCH 2/7] jobs: canonize Error object |
Date: |
Sat, 25 Aug 2018 15:15:57 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 |
On 2018-08-23 00:50, John Snow wrote:
>
>
> On 08/22/2018 06:59 AM, Max Reitz wrote:
>> On 2018-08-21 02:10, John Snow wrote:
>>>
>>>
>>> On 08/17/2018 03:04 PM, John Snow wrote:
>>>> + error_setg_errno(&job->err, -job->ret, "job failed");
>>>
>>> Kevin specifically asked for me to change this, and I lost it in the
>>> shuffle. I'll send a v3 now, since there are enough nits to warrant it,
>>> and I think I want to adjust a few things to set up the "part II"
>>> portion of this changeset a little more nicely.
>>
>> But error_setg_errno() uses either strerror() or
>> g_win32_error_message(), depending on the host OS. I prefer that over a
>> blind strerror(), to be honest.
>>
>
> uhh, does it...?
>
> it looks like error_setg_errno is always error_setg_errno_internal,
> which always uses strerror... am I misreading?
Ah, right, I was... I thought the #ifdef below somehow was referring to
the same function, so it resolved to something else. Yeah, sure,
usually the errno values comes from something we set ourselves and not
even the real OS API, so we need to always use strerror().
Sorry.
Max
signature.asc
Description: OpenPGP digital signature
[Qemu-block] [PATCH 6/7] jobs: utilize job_exit shim, John Snow, 2018/08/17
[Qemu-block] [PATCH 7/7] jobs: remove job_defer_to_main_loop, John Snow, 2018/08/17
[Qemu-block] [PATCH 3/7] jobs: add exit shim, John Snow, 2018/08/17