diff --git a/test/zdtm/live/static/session00.c b/test/zdtm/live/static/session00.c index 4da0d334e..bc8f00940 100644 --- a/test/zdtm/live/static/session00.c +++ b/test/zdtm/live/static/session00.c @@ -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)",