s3:messaging: allow the messaging receive callback to change the fds
authorMichael Adam <obnox@samba.org>
Tue, 30 Sep 2014 09:29:22 +0000 (11:29 +0200)
committerMichael Adam <obnox@samba.org>
Tue, 30 Sep 2014 14:36:10 +0000 (16:36 +0200)
commit00d9ee04dd0f5c2fe5e0cd7108ed7da4b981c258
tree4d6a38054725b63b30084314c516ef33f2bde2c3
parentd8af3e76a362328a854aeb83f8699443e77d2a8d
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>
source3/lib/messages.c
source3/lib/messages_dgm.c
source3/lib/messages_dgm.h