[CRIU] [PATCH] test: eventfs00 -- Close epoll and pipe on exit

Andrew Vagin avagin at virtuozzo.com
Tue Dec 22 06:36:30 PST 2015


On Tue, Dec 22, 2015 at 04:06:01PM +0300, Cyrill Gorcunov wrote:
> On Tue, Dec 22, 2015 at 04:02:17PM +0300, Cyrill Gorcunov wrote:
> > Signed-off-by: Cyrill Gorcunov <gorcunov at openvz.org>
> > ---
> >  test/zdtm/live/static/eventfs00.c | 5 +++++
> >  1 file changed, 5 insertions(+)
> > 
> > diff --git a/test/zdtm/live/static/eventfs00.c b/test/zdtm/live/static/eventfs00.c
> > index 69fc88186986..708fc23a0b59 100644
> > --- a/test/zdtm/live/static/eventfs00.c
> > +++ b/test/zdtm/live/static/eventfs00.c
> > @@ -93,6 +93,11 @@ int main(int argc, char *argv[])
> >  		exit(1);
> >  	}
> >  
> > +	close(pipefd[0]);
> > +	close(pipefd[1]);
> > +	close(efd);
> > +	close(epollfd);
> > +
> 
> Guys, if I'm not mistaken we should release all resources before pass()
> to make zdtm.py happy? Or we still able to rely on the kernel to clean
> up all things for us (upon exit)?

The second one


More information about the CRIU mailing list