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

Cyrill Gorcunov gorcunov at gmail.com
Fri Sep 20 15:54:51 EDT 2013


On Fri, Sep 20, 2013 at 11:45:57PM +0400, Andrew Vagin wrote:
> > 
> > I mean, aren't any commands after exit() would not be executed?
> 
> exit() dosn't return, so this "return -1" is redundant
> 
> Actually we can delete this "return -1" and gcc will not report any error,
> because exit() is marked as "noreturn".
> 
> extern void exit (int __status) __THROW __attribute__ ((__noreturn__));
> 
> so I would prefer to delete return -1 from here

yeah, thanks, I managed to forget about __noreturn__.


More information about the CRIU mailing list