[CRIU] [RFC PATCH v2 21/23] lazy-pages: add handling of UFFD_EVENT_FORK

Mike Rapoport rppt at linux.vnet.ibm.com
Wed Feb 8 01:59:04 PST 2017


On Wed, Feb 08, 2017 at 12:26:20PM +0300, Pavel Emelyanov wrote:
> 
> > @@ -938,6 +1027,8 @@ static int handle_requests(int epollfd, struct epoll_event *events, int nr_fds)
> >  		if (ret < 0)
> >  			goto out;
> >  		if (ret > 0) {
> > +			if (complete_forks(epollfd, &events, &nr_fds))
> > +				return -1;
> 
> Same question for forks -- why two parts?

And here because epoll is not happy when you realloc &events at event
handler.
> 
> >  			if (complete_exits(epollfd))
> >  				return -1;
> >  			continue;
> > 
> 



More information about the CRIU mailing list