[CRIU] [PATCH 3/3] service: fix typo/bug
Ruslan Kuprieiev
rkuprieiev at cloudlinux.com
Mon Feb 27 03:39:53 PST 2017
As pid field is int, even when has_pid is false and pid is not set,
we still don't run into any visible bugs here, but either way it should
be fixed.
Signed-off-by: Ruslan Kuprieiev <rkuprieiev at cloudlinux.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 8b4f5a9..2bd58d2 100644
--- a/criu/cr-service.c
+++ b/criu/cr-service.c
@@ -550,7 +550,7 @@ err:
static int dump_using_req(int sk, CriuOpts *req)
{
bool success = false;
- bool self_dump = !req->pid;
+ bool self_dump = !req->has_pid;
if (setup_opts_from_req(sk, req))
goto exit;
--
2.9.3
More information about the CRIU
mailing list