Commit ec8db4cb authored by Andrew Vagin's avatar Andrew Vagin Committed by Pavel Emelyanov

test/session00: close a signal pipe in all processes

Signed-off-by: 's avatarAndrew Vagin <avagin@virtuozzo.com>
Signed-off-by: 's avatarPavel Emelyanov <xemul@virtuozzo.com>
parent d2183bb3
...@@ -89,6 +89,7 @@ static int fork_child(int i) ...@@ -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) ...@@ -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)",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment