[CRIU] [PATCH] zdtm_ct: don't create a new session

Andrey Vagin avagin at openvz.org
Thu Feb 4 11:47:58 PST 2016


From: Andrew Vagin <avagin at virtuozzo.com>

All processes should exit if an user presses ctrl-c.

Signed-off-by: Andrew Vagin <avagin at virtuozzo.com>
---
 test/zdtm_ct.c | 5 -----
 1 file changed, 5 deletions(-)

diff --git a/test/zdtm_ct.c b/test/zdtm_ct.c
index 1e9ba2a..4579dfc 100644
--- a/test/zdtm_ct.c
+++ b/test/zdtm_ct.c
@@ -20,11 +20,6 @@ int main(int argc, char **argv)
 		return 1;
 	pid = fork();
 	if (pid == 0) {
-		if (setsid() == -1) {
-			fprintf(stderr, "setsid: %m\n");
-			return 1;
-		}
-
 		if (mount(NULL, "/", NULL, MS_REC | MS_PRIVATE, NULL)) {
 			fprintf(stderr, "mount(/, S_REC | MS_PRIVATE)): %m");
 			return 1;
-- 
2.4.3



More information about the CRIU mailing list