[CRIU] [PATCH] libcriu: print error if exec failed

Ruslan Kuprieiev kupruser at gmail.com
Tue Dec 9 16:44:20 PST 2014


Reported-by: Paschalis Mpeis <paschalis.mpeis at ed.ac.uk>
Signed-off-by: Ruslan Kuprieiev <kupruser at gmail.com>
---
 lib/criu.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/lib/criu.c b/lib/criu.c
index 18d2091..de81124 100644
--- a/lib/criu.c
+++ b/lib/criu.c
@@ -654,6 +654,7 @@ int criu_restore_child(void)
 		sprintf(fds, "%d", sks[1]);
 
 		execlp("criu", "criu", "swrk", fds, NULL);
+		perror("Can't exec criu swrk");
 		exit(1);
 	}
 
-- 
1.9.3



More information about the CRIU mailing list