[CRIU] [PATCH 6/9] service: add cr_errno to criu_resp and send cr_errno in it
Ruslan Kuprieiev
kupruser at gmail.com
Fri Dec 19 10:19:20 PST 2014
19.12.2014 18:00, Pavel Emelyanov пишет:
> On 12/11/2014 11:55 PM, Ruslan Kuprieiev wrote:
>> Signed-off-by: Ruslan Kuprieiev <kupruser at gmail.com>
>> ---
>> cr-service.c | 9 ++++++++-
>> protobuf/rpc.proto | 2 ++
>> 2 files changed, 10 insertions(+), 1 deletion(-)
>>
>> diff --git a/cr-service.c b/cr-service.c
>> index 99cba06..9ad7769 100644
>> --- a/cr-service.c
>> +++ b/cr-service.c
>> @@ -88,7 +88,8 @@ static void send_criu_err(int sk, char *msg)
>>
>> resp.type = CRIU_REQ_TYPE__EMPTY;
>> resp.success = false;
>> - /* XXX -- add optional error code to CriuResp */
>> + resp.has_cr_errno = true;
>
> I guess we only need to report we have an errno when it's != 0.
> other wise we kinda don't have one :)
>
Done. Please, see [PATCH 6/9] service: add cr_errno to criu_resp and
send cr_errno in it, v2
Thanks.
More information about the CRIU
mailing list