Commit 56138fea authored by Pavel Emelyanov's avatar Pavel Emelyanov

service: Fix page-server start return code checking

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: 's avatarPavel Emelyanov <xemul@virtuozzo.com>
Signed-off-by: 's avatarAndrei Vagin <avagin@virtuozzo.com>
parent 8719b7c9
...@@ -713,7 +713,7 @@ static int start_page_server_req(int sk, CriuOpts *req) ...@@ -713,7 +713,7 @@ static int start_page_server_req(int sk, CriuOpts *req)
pr_debug("Starting page server\n"); pr_debug("Starting page server\n");
pid = cr_page_server(true, start_pipe[1]); pid = cr_page_server(true, start_pipe[1]);
if (pid <= 0) if (pid < 0)
goto out_ch; goto out_ch;
info.pid = pid; info.pid = pid;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment