[CRIU] [PATCH] page-xref: set ret to zero if PS_IO_FLUSH completed successfully

Andrew Vagin avagin at openvz.org
Fri Aug 9 09:55:32 EDT 2013


Due to this issue the server initiates closing a connection and its
socket is transfered into the TIME_WAIT state, so the second run of
page-server fails with the error "the address is already in use".

Signed-off-by: Andrew Vagin <avagin at openvz.org>
---
 page-xfer.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/page-xfer.c b/page-xfer.c
index 6098b92..14e1740 100644
--- a/page-xfer.c
+++ b/page-xfer.c
@@ -197,6 +197,7 @@ static int page_server_serve(int sk)
 			}
 
 			flushed = true;
+			ret = 0;
 			break;
 		}
 		default:
-- 
1.8.3.1



More information about the CRIU mailing list