[CRIU] [PATCH] Resolve file descriptor clashes with inherit fds

Andrew Vagin avagin at parallels.com
Wed Nov 26 12:02:49 PST 2014


On Wed, Nov 26, 2014 at 10:13:49PM +0300, Pavel Emelyanov wrote:
> On 11/26/2014 01:54 AM, Saied Kazemi wrote:
> > Since with --inherit-fd option criu's caller can set any fd to be
> > inheritied, there is a chance of fd clash during restore.  Resolve such
> > cases by moving the inherit fd to a different descriptor.
> > 
> > Signed-off-by: Saied Kazemi <saied at google.com>
> 
> I have a crazy idea how to keep all inherit-fds in a service-fd area :)
> We can create a unix socket and "send" all inherited fd-s there. At the
> time of fd restore we can just pull one out of this queue :)

How to specify which one should be pulled out?

> 
> What do you think?

Are you going to read them all each time, when you need one of them?

How many file descriptors can be sent in one unix socket?

> 
> 


More information about the CRIU mailing list