From 774bde1a5c4c0e40e56319646fd9a78cb77d5c27 Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Wed, 24 Sep 2014 19:11:27 +0200 Subject: [PATCH 3/3] s3:torture: in LOCAL-MESSAGING-FDPASS2, close fds after passing them Signed-off-by: Michael Adam --- source3/torture/test_messaging_fd_passing.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/source3/torture/test_messaging_fd_passing.c b/source3/torture/test_messaging_fd_passing.c index 1a296e4..5b3099e 100644 --- a/source3/torture/test_messaging_fd_passing.c +++ b/source3/torture/test_messaging_fd_passing.c @@ -255,6 +255,9 @@ static bool fdpass2_parent(pid_t child_pid, int ready_fd) goto done; } + close(up_pipe[0]); + close(down_pipe[1]); + bytes = write(up_pipe[1], &c1, 1); if (bytes != 1) { perror("parent: write to up pipe failed"); -- 1.9.1