Check if channel has closed stream in channel poll for CPU hotplug
[lttng-modules.git] / ltt-debugfs-abi.c
index 0aa2cec03381ea0f58d121f1136cc6e7544b9455..72077183aaa5c01acc48a85a0e3aeaa527e85363 100644 (file)
@@ -609,8 +609,9 @@ unsigned int lttng_channel_poll(struct file *file, poll_table *wait)
                        return POLLERR;
                if (channel->ops->is_finalized(channel->chan))
                        return POLLHUP;
-               else
+               if (channel->ops->buffer_has_read_closed_stream(channel->chan))
                        return POLLIN | POLLRDNORM;
+               return 0;
        }
        return mask;
 
This page took 0.024504 seconds and 4 git commands to generate.