[CRIU] Re: on servie fd handling code

Cyrill Gorcunov gorcunov at openvz.org
Thu Sep 6 11:13:09 EDT 2012


On Thu, Sep 06, 2012 at 07:10:02PM +0400, Pavel Emelyanov wrote:
> 
> Leave the whole thing in util.c

ok

> >  int copy_file(int fd_in, int fd_out, size_t bytes)
> >  {
> >  	ssize_t written = 0;
> 
> > +bool is_service_fd(int fd, int type)
> > +{
> > +	return fd > rlim_min && fd == get_service_fd(type);
> 
> return fd > rlim_cur - SFD_OFF_MAX;

ok


More information about the CRIU mailing list