git.samba.org
/
obnox
/
samba
/
samba-obnox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a4edec4
)
s3:torture: in LOCAL-MESSAGING-FDPASS2, close fds after passing them
author
Michael Adam
<obnox@samba.org>
Wed, 24 Sep 2014 17:11:27 +0000
(19:11 +0200)
committer
Volker Lendecke
<vl@samba.org>
Sat, 27 Sep 2014 10:44:55 +0000
(12:44 +0200)
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
source3/torture/test_messaging_fd_passing.c
patch
|
blob
|
history
diff --git
a/source3/torture/test_messaging_fd_passing.c
b/source3/torture/test_messaging_fd_passing.c
index 1a296e441ccf6eb00d8548fa1e977ea614df7c74..5b3099e7639f276f41d153e970d1c3a02ebf61fb 100644
(file)
--- 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");