X-Git-Url: http://git.lttng.org/?a=blobdiff_plain;f=ltt-debugfs-abi.c;h=f8bee492c3daae003dc7702aaf638ad3af99d0d3;hb=254ec7bc4c72da11a4e3f2c90904b111a06a2c55;hp=fb6c789f1e0da0f4aa32bba7775fb86d439b90f0;hpb=24cedcfefbfe781af5430e07a327030cc7caddfc;p=lttng-modules.git diff --git a/ltt-debugfs-abi.c b/ltt-debugfs-abi.c index fb6c789f..f8bee492 100644 --- a/ltt-debugfs-abi.c +++ b/ltt-debugfs-abi.c @@ -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