2
0
mirror of https://github.com/checkpoint-restore/criu synced 2025-08-29 21:38:16 +00:00

zdtm_ct: don't create a new session

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

Signed-off-by: Andrew Vagin <avagin@virtuozzo.com>
Signed-off-by: Pavel Emelyanov <xemul@virtuozzo.com>
This commit is contained in:
Andrew Vagin 2016-02-04 22:47:00 +03:00 committed by Pavel Emelyanov
parent fe078a0f52
commit e68008a80a

View File

@ -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;