Return POLLERR if channel is disabled (error state)
[lttng-modules.git] / ltt-debugfs-abi.c
index fb6c789f1e0da0f4aa32bba7775fb86d439b90f0..f8bee492c3daae003dc7702aaf638ad3af99d0d3 100644 (file)
@@ -568,6 +568,8 @@ unsigned int lttng_channel_poll(struct file *file, poll_table *wait)
                poll_wait(file, channel->ops->get_hp_wait_queue(channel->chan),
                          wait);
 
+               if (channel->ops->is_disabled(channel->chan))
+                       return POLLERR;
                if (channel->ops->is_finalized(channel->chan))
                        return POLLHUP;
                else
This page took 0.022568 seconds and 4 git commands to generate.