[CRIU] [PATCH cr 07/10] restore: print message about sid only if
it's restored
Andrey Vagin
avagin at openvz.org
Tue Jun 19 08:46:58 EDT 2012
Signed-off-by: Andrey Vagin <avagin at openvz.org>
---
cr-restore.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/cr-restore.c b/cr-restore.c
index a1f634c..af03801 100644
--- a/cr-restore.c
+++ b/cr-restore.c
@@ -729,8 +729,8 @@ static void restore_sid(void)
* we can call setpgid() on custom values.
*/
- pr_info("Restoring %d to %d sid\n", me->pid, me->sid);
if (me->pid == me->sid) {
+ pr_info("Restoring %d to %d sid\n", me->pid, me->sid);
sid = setsid();
if (sid != me->sid) {
pr_perror("Can't restore sid (%d)", sid);
--
1.7.1
More information about the CRIU
mailing list