summaryrefslogtreecommitdiffstats
path: root/source3/lib/messages.c
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2014-09-30 11:29:22 +0200
committerMichael Adam <obnox@samba.org>2014-09-30 16:36:10 +0200
commit00d9ee04dd0f5c2fe5e0cd7108ed7da4b981c258 (patch)
tree4d6a38054725b63b30084314c516ef33f2bde2c3 /source3/lib/messages.c
parentd8af3e76a362328a854aeb83f8699443e77d2a8d (diff)
downloadsamba-00d9ee04dd0f5c2fe5e0cd7108ed7da4b981c258.tar.gz
samba-00d9ee04dd0f5c2fe5e0cd7108ed7da4b981c258.tar.xz
samba-00d9ee04dd0f5c2fe5e0cd7108ed7da4b981c258.zip
s3:messaging: allow the messaging receive callback to change the fds
This allows the callback to consume the fds and e.g. set them to -1 so that the caller can then treat (close) only those fds that have not been consumed. Signed-off-by: Michael Adam <obnox@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Volker Lendecke <vl@samba.org>
Diffstat (limited to 'source3/lib/messages.c')
-rw-r--r--source3/lib/messages.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/lib/messages.c b/source3/lib/messages.c
index e2d0880e04..86198771ff 100644
--- a/source3/lib/messages.c
+++ b/source3/lib/messages.c
@@ -204,7 +204,7 @@ bool message_send_all(struct messaging_context *msg_ctx,
}
static void messaging_recv_cb(const uint8_t *msg, size_t msg_len,
- const int *fds, size_t num_fds,
+ int *fds, size_t num_fds,
void *private_data)
{
struct messaging_context *msg_ctx = talloc_get_type_abort(