The branch, master has been updated
       via  46431e3 unix_msg: Fix unix_msg_test_drain
      from  c261072 docs-xml: document the interaction between "write cache 
size" and "aio read/write size"

https://git.samba.org/?p=samba.git;a=shortlog;h=master


- Log -----------------------------------------------------------------
commit 46431e390f8184c4207f48704e0a0bb5dcb38366
Author: Volker Lendecke <v...@samba.org>
Date:   Thu Dec 4 14:50:27 2014 +0000

    unix_msg: Fix unix_msg_test_drain
    
    poll_funcs_init_tevent does not register a tevent context by default. This
    used to be the case in an early development stage, but apparently I
    haven't tested this for a while :-)
    
    Signed-off-by: Volker Lendecke <v...@samba.org>
    Reviewed-by: David Disseldorp <dd...@samba.org>
    
    Autobuild-User(master): David Disseldorp <dd...@samba.org>
    Autobuild-Date(master): Thu Dec  4 18:55:08 CET 2014 on sn-devel-104

-----------------------------------------------------------------------

Summary of changes:
 source3/lib/unix_msg/test_drain.c | 7 +++++++
 1 file changed, 7 insertions(+)


Changeset truncated at 500 lines:

diff --git a/source3/lib/unix_msg/test_drain.c 
b/source3/lib/unix_msg/test_drain.c
index 5b6a930..9d74042 100644
--- a/source3/lib/unix_msg/test_drain.c
+++ b/source3/lib/unix_msg/test_drain.c
@@ -18,6 +18,7 @@ static void recv_cb(struct unix_msg_ctx *ctx,
 int main(int argc, const char *argv[])
 {
        struct poll_funcs *funcs;
+       void *handle;
        struct sockaddr_un addr;
        struct unix_msg_ctx *ctx;
        struct tevent_context *ev;
@@ -45,6 +46,12 @@ int main(int argc, const char *argv[])
                return 1;
        }
 
+       handle = poll_funcs_tevent_register(ev, funcs, ev);
+       if (handle == NULL) {
+               fprintf(stderr, "poll_funcs_tevent_register failed\n");
+               exit(1);
+       }
+
        ret = unix_msg_init(&addr, funcs, 256, 1, recv_cb, &state, &ctx);
        if (ret != 0) {
                fprintf(stderr, "unix_msg_init failed: %s\n",


-- 
Samba Shared Repository

Reply via email to