From e68008a80a088cfde196df7cc1e5ccfbeba9301f Mon Sep 17 00:00:00 2001 From: Andrew Vagin Date: Thu, 4 Feb 2016 22:47:00 +0300 Subject: [PATCH] zdtm_ct: don't create a new session All processes should exit if an user presses ctrl-c. Signed-off-by: Andrew Vagin Signed-off-by: Pavel Emelyanov --- test/zdtm_ct.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/test/zdtm_ct.c b/test/zdtm_ct.c index 1e9ba2a95..4579dfcc4 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;