[CRIU] [PATCH 07/14] Correct an error message after waitpid

Kir Kolyshkin kir at openvz.org
Thu Mar 23 15:02:04 PDT 2017


Usually we print the PID we wait for, let's do the same here.
Probably just a typo.

Cc: Kirill Tkhai <ktkhai at virtuozzo.com>
Reviewed-by: Kirill Tkhai <ktkhai at virtuozzo.com>
Signed-off-by: Kir Kolyshkin <kir at openvz.org>
---
 criu/namespaces.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/criu/namespaces.c b/criu/namespaces.c
index 01afca4..a0e7397 100644
--- a/criu/namespaces.c
+++ b/criu/namespaces.c
@@ -1175,7 +1175,7 @@ static int check_user_ns(struct ns_id *ns)
 	}
 
 	if (waitpid(chld, &status, 0) != chld) {
-		pr_perror("Unable to wait the %d process", pid);
+		pr_perror("Unable to wait for PID %d", chld);
 		return -1;
 	}
 
-- 
2.9.3



More information about the CRIU mailing list