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:
parent
a4edec4e8d
commit
e3a796f3eb
@ -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");
|
||||
|
Loading…
x
Reference in New Issue
Block a user