2
0
mirror of https://github.com/checkpoint-restore/criu synced 2025-08-30 22:05:36 +00:00

test/session00: close a signal pipe in all processes

Signed-off-by: Andrew Vagin <avagin@virtuozzo.com>
Signed-off-by: Pavel Emelyanov <xemul@virtuozzo.com>
This commit is contained in:
Andrew Vagin
2016-01-13 18:29:00 +03:00
committed by Pavel Emelyanov
parent d2183bb3eb
commit ec8db4cb6c

View File

@@ -89,6 +89,7 @@ static int fork_child(int i)
exit(1);
}
close(p[1]);
wait(NULL);
if (getsid(getpid()) != sid) {
fail("The process %d (%x) has SID=%d (expected %d)",
@@ -115,6 +116,7 @@ static int fork_child(int i)
exit(1);
}
close(p[1]);
wait(NULL);
if (getsid(getpid()) != sid) {
fail("The process %d (%x) has SID=%d (expected %d)",