[CRIU] [PATCH] parasite: handle errors while a transport socket is being created

Cyrill Gorcunov gorcunov at gmail.com
Thu Jul 28 12:14:47 PDT 2016


On Thu, Jul 28, 2016 at 09:41:35PM +0300, Andrey Vagin wrote:
> From: Andrew Vagin <avagin at virtuozzo.com>
> 
> Currently if socket() or connect() syscall-s failed, parasite cures itself,
> but criu has not got any signals and waits on accept().
> 
> This patch adds a futex to synchronize parasite and criu. The server socket
> is created with SOCK_NONBLOCK and waits on the futex when a parasite
> connects to it, only then criu calls accept() and it returns immediately.
> 
> Reported-by: Yohei Kamitsukasa <uhoidx at gmail.com>
> Cc: Yohei Kamitsukasa <uhoidx at gmail.com>
> Signed-off-by: Andrew Vagin <avagin at virtuozzo.com>
Acked-by: Cyrill Gorcunov <gorcunov at openvz.org>



More information about the CRIU mailing list