1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-03 13:47:25 +03:00

s3:torture: in LOCAL-MESSAGING-FDPASS2, close fds after passing them

Signed-off-by: Michael Adam <obnox@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>

Autobuild-User(master): Volker Lendecke <vl@samba.org>
Autobuild-Date(master): Sat Sep 27 12:44:55 CEST 2014 on sn-devel-104
This commit is contained in:
Michael Adam 2014-09-24 19:11:27 +02:00 committed by Volker Lendecke
parent a4edec4e8d
commit e3a796f3eb

View File

@ -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");