[CRIU] [PATCH] compel: check whether a parasite socket is prepared each time

Cyrill Gorcunov gorcunov at gmail.com
Thu Nov 17 00:00:33 PST 2016


On Thu, Nov 17, 2016 at 09:45:31AM +0300, Andrei Vagin wrote:
> From: Andrei Vagin <avagin at virtuozzo.com>
> 
> Currently we prepare a parasite socket only once and
> save it in a static variable.
> 
> It's bad idea to use a static variable in a library.
> 
> In addition, it doesn't work if we have processes in
> different network namespaces. In this case, we have to have
> a separate socket for each namespace.
> 
> Signed-off-by: Andrei Vagin <avagin at virtuozzo.com>
Acked-by: Cyrill Gorcunov <gorcunov at openvz.org>



More information about the CRIU mailing list