[PATCH] Use the CHECKPOINT_SUBTREE definition from cr.h

Matt Helsley matthltc at us.ibm.com
Tue Aug 4 16:43:09 PDT 2009


Signed-off-by: Matt Helsley <matthltc at us.ibm.com>
---
 simple/ckpt.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/simple/ckpt.c b/simple/ckpt.c
index 50085f4..ec51510 100644
--- a/simple/ckpt.c
+++ b/simple/ckpt.c
@@ -40,7 +40,7 @@ int main(int argc, char *argv[])
 	fprintf(file, "hello, world!\n");
 	fflush(file);
 
-	ret = syscall(__NR_checkpoint, pid, STDOUT_FILENO, 1);
+	ret = syscall(__NR_checkpoint, pid, STDOUT_FILENO, CHECKPOINT_SUBTREE);
 	if (ret < 0) {
 		perror("checkpoint");
 		exit(2);
-- 
1.5.6.3




More information about the Containers mailing list