Revert "msgtest fd-passing"
authorStefan Metzmacher <metze@samba.org>
Wed, 29 Jul 2015 07:51:44 +0000 (09:51 +0200)
committerStefan Metzmacher <metze@samba.org>
Mon, 10 Feb 2020 14:17:27 +0000 (15:17 +0100)
This reverts commit 22d310d3baf9e8715a12939882d9460383dde2f9.

source3/torture/msgtest.c

index 77cbc6a0778e62d34a8d69d265d9c89c29058057..1d2a8a9b1c86275a74d6cd11ec23cd6d6858e3a4 100644 (file)
@@ -47,7 +47,6 @@ static void pong_message(struct messaging_context *msg_ctx,
        char buf[12];
        int ret;
        TALLOC_CTX *frame = talloc_stackframe();
-       int fds[1] = { 0 };
 
        smb_init_locale();
 
@@ -77,8 +76,6 @@ static void pong_message(struct messaging_context *msg_ctx,
        for (i=0;i<n;i++) {
                messaging_send(msg_ctx, pid_to_procid(pid), MSG_PING,
                               &data_blob_null);
-               messaging_send_iov(msg_ctx, pid_to_procid(pid),
-                                  MSG_PING, NULL, 0, fds, 1);
        }
 
        while (pong_count < i) {
@@ -141,10 +138,6 @@ static void pong_message(struct messaging_context *msg_ctx,
                                                   msg_ctx, pid_to_procid(pid),
                                                   MSG_PING, &data_blob_null)))
                           ping_count++;
-                       if(NT_STATUS_IS_OK(messaging_send_iov(
-                                                  msg_ctx, pid_to_procid(pid),
-                                                  MSG_PING, NULL, 0, fds, 1)))
-                          ping_count++;
 
                        while (ping_count > pong_count + 20) {
                                ret = tevent_loop_once(evt_ctx);