[CRIU] [PATCH 2/5] service: set one exit point

Ruslan Kuprieiev kupruser at gmail.com
Fri Sep 20 15:47:30 EDT 2013


On 09/20/2013 11:37 PM, Cyrill Gorcunov wrote:
> On Fri, Sep 20, 2013 at 11:28:04PM +0400, Ruslan Kuprieiev wrote:
>>>> Why do we need both exit and return?
>>>> Will not exit() terminate the process?
>>> exit() terminates the process, but this function must return anything.
>> I didn't get that...Who will get returned value, if exit()
>> terminates the whole process?
>>
>>> We can remove this exit().
> If function declaration is one with returning value you're to
> return something, otherwise compiler will swear at you.
Oh, i get it now.
Thanks=)


More information about the CRIU mailing list