[CRIU] [PATCH 2/3] test: app-emu -- job: Fix comparison

Cyrill Gorcunov gorcunov at openvz.org
Mon May 6 11:12:33 EDT 2013


Since we're migrating session leader here,
test for session has not been changed instead.

Signed-off-by: Cyrill Gorcunov <gorcunov at openvz.org>
---
 test/app-emu/job/job.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/test/app-emu/job/job.c b/test/app-emu/job/job.c
index e01480a..5f334ff 100644
--- a/test/app-emu/job/job.c
+++ b/test/app-emu/job/job.c
@@ -80,7 +80,7 @@ int main(int argc, char *argv[])
 			exit(-1);
 		}
 
-		if (getsid(pid) != sid) {
+		if (getsid(pid) == sid) {
 			printf("ALIVE\n");
 			break;
 		}
-- 
1.8.1.4



More information about the CRIU mailing list