[CRIU] [crtools-bot for Cyrill Gorcunov ] restore: Add a comment about stack size used in restore procedure

Cyrill Gorcunov gorcunov at openvz.org
Tue Feb 28 10:13:47 EST 2012


The commit is pushed to "master" and will appear on git://github.com/cyrillos/crtools.git
------>
commit 5cadfef1c14bc57b56a9c7787e078f761586d7f9
Author: Cyrill Gorcunov <gorcunov at openvz.org>
Date:   Wed Feb 22 17:54:26 2012 +0400

    restore: Add a comment about stack size used in restore procedure
    
    Signed-off-by: Cyrill Gorcunov <gorcunov at openvz.org>
    Acked-by: Pavel Emelyanov <xemul at parallels.com>
---
 cr-restore.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/cr-restore.c b/cr-restore.c
index 8208509..3982154 100644
--- a/cr-restore.c
+++ b/cr-restore.c
@@ -1224,6 +1224,12 @@ static int restore_one_task(int pid)
 	}
 }
 
+/*
+ * This stack size is important for the restorer
+ * itself only. At the final phase, we will switch
+ * to the original stack the program had at checkpoint
+ * time.
+ */
 #define STACK_SIZE	(8 * 4096)
 struct cr_clone_arg {
 	int pid, fd;


More information about the CRIU mailing list