diff options
author | Michael Adam <obnox@samba.org> | 2014-09-30 13:06:18 +0200 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2014-09-30 16:36:10 +0200 |
commit | d7d9ec31dfe5d797307a7d107f0874260e7eab4a (patch) | |
tree | 05c830f8df2e32eb220cc85c76aa0c46f82745ee /source3/lib | |
parent | 0ab5e895f7869ea07624c666cc620576a7fde289 (diff) | |
download | samba-d7d9ec31dfe5d797307a7d107f0874260e7eab4a.tar.gz samba-d7d9ec31dfe5d797307a7d107f0874260e7eab4a.tar.xz samba-d7d9ec31dfe5d797307a7d107f0874260e7eab4a.zip |
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>
Diffstat (limited to 'source3/lib')
-rw-r--r-- | source3/lib/unix_msg/unix_msg.h | 7 |
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 6024804fc3..56f7a40faf 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. */ /** |