[CRIU] [PATCH 5/8] lib: return -1, if unable to connect to socket

Ruslan Kuprieiev kupruser at gmail.com
Wed Dec 4 02:57:28 PST 2013


Signed-off-by: Ruslan Kuprieiev <kupruser at gmail.com>
---
 lib/criu.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/lib/criu.c b/lib/criu.c
index 19a39b0..75abe10 100644
--- a/lib/criu.c
+++ b/lib/criu.c
@@ -87,6 +87,7 @@ static int criu_connect(void)
 	if (ret < 0) {
 		perror("Can't connect to socket");
 		close(fd);
+		return -1;
 	}
 
 	return fd;
-- 
1.8.1.2



More information about the CRIU mailing list