[Devel] [PATCH 1/6] vzctl: split ct_env_create

Andrey Wagin avagin at gmail.com
Thu May 16 09:47:19 PDT 2013


2013/5/16 Glauber Costa <glommer at parallels.com>:
> On 05/16/2013 04:14 PM, Andrey Vagin wrote:
>> +     ret = ct_env_create_real(arg);
>> +     if (ret < 0)
>>               return VZ_RESOURCE_ERROR;
>> -     }
>
> Isn't it better to just keep the return values intact in create_real,
> and then return them as is if ret != 0 ?

It returns PID of the init process. VZ_RESOURCE_ERROR is positive too

>



More information about the Devel mailing list