Fix: data reception is called event when only FDS are expected for reception
[lttng-tools.git] / src / bin / lttng-sessiond / notification-thread-events.c
index 414e5dd8aec0afd90a685eb1a23a53f315b2e554..655400f9484c790af2116f1855203a806f562e2d 100644 (file)
@@ -3954,6 +3954,12 @@ int handle_notification_thread_client_in(
                goto end;
        }
 
+       if (client->communication.inbound.bytes_to_receive == 0 &&
+                       client->communication.inbound.fds_to_receive != 0) {
+               /* Only FDs left to receive. */
+               goto receive_fds;
+       }
+
        offset = client->communication.inbound.payload.buffer.size -
                        client->communication.inbound.bytes_to_receive;
        if (client->communication.inbound.expect_creds) {
@@ -3982,6 +3988,7 @@ int handle_notification_thread_client_in(
                goto end;
        }
 
+receive_fds:
        assert(client->communication.inbound.bytes_to_receive == 0);
 
        /* Receive fds. */
This page took 0.023474 seconds and 4 git commands to generate.