[CRIU] [PATCH] Resolve file descriptor clashes with inherit fds
Pavel Emelyanov
xemul at parallels.com
Wed Nov 26 11:13:49 PST 2014
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 :)
What do you think?
More information about the CRIU
mailing list