mirror of
https://github.com/checkpoint-restore/criu
synced 2025-08-30 05:48:05 +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:
parent
fe078a0f52
commit
e68008a80a
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user