[CRIU] [PATCH 2/4] cr_service(): don't exit(-1)

Kir Kolyshkin kir at openvz.org
Thu Dec 12 10:02:26 PST 2013


We should exit(1) on error, exit(0) on success.

Signed-off-by: Kir Kolyshkin <kir at openvz.org>
---
 cr-service.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/cr-service.c b/cr-service.c
index ce28b59..ba498b4 100644
--- a/cr-service.c
+++ b/cr-service.c
@@ -420,7 +420,7 @@ int cr_service(bool daemon_mode)
 			close(server_fd);
 			ret = cr_service_work(sk);
 			close(sk);
-			exit(ret);
+			exit(ret != 0);
 		}
 
 		if (child_pid < 0)
-- 
1.8.1.4



More information about the CRIU mailing list