[CRIU] [PATCH] service: Fix page-server start return code checking
Pavel Emelyanov
xemul at virtuozzo.com
Thu Feb 16 04:03:54 PST 2017
Commit 10801f36 (page-server: don't return a server pid from
page-server) broke page-server starting via RPC -- the latter
code checks for return value being <=0 as failure.
Signed-off-by: Pavel Emelyanov <xemul at virtuozzo.com>
---
criu/cr-service.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/criu/cr-service.c b/criu/cr-service.c
index ff5a7a8..169d637 100644
--- a/criu/cr-service.c
+++ b/criu/cr-service.c
@@ -735,7 +735,7 @@ static int start_page_server_req(int sk, CriuOpts *req)
pr_debug("Starting page server\n");
pid = cr_page_server(true, false, start_pipe[1]);
- if (pid <= 0)
+ if (pid < 0)
goto out_ch;
info.pid = pid;
--
2.5.0
More information about the CRIU
mailing list