mirror of
https://github.com/checkpoint-restore/criu
synced 2025-08-31 14:25:49 +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:
committed by
Pavel Emelyanov
parent
fe078a0f52
commit
e68008a80a
@@ -20,11 +20,6 @@ int main(int argc, char **argv)
|
|||||||
return 1;
|
return 1;
|
||||||
pid = fork();
|
pid = fork();
|
||||||
if (pid == 0) {
|
if (pid == 0) {
|
||||||
if (setsid() == -1) {
|
|
||||||
fprintf(stderr, "setsid: %m\n");
|
|
||||||
return 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (mount(NULL, "/", NULL, MS_REC | MS_PRIVATE, NULL)) {
|
if (mount(NULL, "/", NULL, MS_REC | MS_PRIVATE, NULL)) {
|
||||||
fprintf(stderr, "mount(/, S_REC | MS_PRIVATE)): %m");
|
fprintf(stderr, "mount(/, S_REC | MS_PRIVATE)): %m");
|
||||||
return 1;
|
return 1;
|
||||||
|
Reference in New Issue
Block a user