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

Cyrill Gorcunov gorcunov at gmail.com
Fri Sep 20 15:37:49 EDT 2013


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.


More information about the CRIU mailing list