summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2014-09-30 13:06:18 +0200
committerMichael Adam <obnox@samba.org>2014-09-30 16:36:10 +0200
commitd7d9ec31dfe5d797307a7d107f0874260e7eab4a (patch)
tree05c830f8df2e32eb220cc85c76aa0c46f82745ee
parent0ab5e895f7869ea07624c666cc620576a7fde289 (diff)
downloadsamba-d7d9ec31dfe5d797307a7d107f0874260e7eab4a.tar.gz
s3:unix_msg: document closing of fds in the receive handler
Pair-Programmed-With: Volker Lendecke <vl@samba.org> Signed-off-by: Michael Adam <obnox@samba.org> Signed-off-by: Volker Lendecke <vl@samba.org>
-rw-r--r--source3/lib/unix_msg/unix_msg.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/source3/lib/unix_msg/unix_msg.h b/source3/lib/unix_msg/unix_msg.h
index 6024804fc3e..56f7a40fafd 100644
--- a/source3/lib/unix_msg/unix_msg.h
+++ b/source3/lib/unix_msg/unix_msg.h
@@ -55,6 +55,13 @@
* If unix_msg_send is asked to send a message larger than fragment_size, it
* will try sending the message in pieces with proper framing, the receiving
* side will reassemble the messages.
+ *
+ * fd-passing is supported.
+ * Note that by default the fds passed to recv_callback are closed by
+ * the receive handler in order to avoid fd-leaks. If the provider of
+ * the recv_callback wants to use a passed file descriptor after the
+ * callback returns, it must copy the fd away and set the corresponding
+ * entry in the "fds" array to -1.
*/
/**