mirror of
https://github.com/checkpoint-restore/criu
synced 2025-08-31 22:35:33 +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:
committed by
Pavel Emelyanov
parent
d2183bb3eb
commit
ec8db4cb6c
@@ -89,6 +89,7 @@ static int fork_child(int i)
|
|||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
close(p[1]);
|
||||||
wait(NULL);
|
wait(NULL);
|
||||||
if (getsid(getpid()) != sid) {
|
if (getsid(getpid()) != sid) {
|
||||||
fail("The process %d (%x) has SID=%d (expected %d)",
|
fail("The process %d (%x) has SID=%d (expected %d)",
|
||||||
@@ -115,6 +116,7 @@ static int fork_child(int i)
|
|||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
close(p[1]);
|
||||||
wait(NULL);
|
wait(NULL);
|
||||||
if (getsid(getpid()) != sid) {
|
if (getsid(getpid()) != sid) {
|
||||||
fail("The process %d (%x) has SID=%d (expected %d)",
|
fail("The process %d (%x) has SID=%d (expected %d)",
|
||||||
|
Reference in New Issue
Block a user