Commit e68008a8 authored by Andrew Vagin's avatar Andrew Vagin Committed by Pavel Emelyanov

zdtm_ct: don't create a new session

All processes should exit if an user presses ctrl-c.
Signed-off-by: 's avatarAndrew Vagin <avagin@virtuozzo.com>
Signed-off-by: 's avatarPavel Emelyanov <xemul@virtuozzo.com>
parent fe078a0f
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment