diff --git a/kernel-module/xt_RTPENGINE.c b/kernel-module/xt_RTPENGINE.c index 2d72612eac..b60f606871 100644 --- a/kernel-module/xt_RTPENGINE.c +++ b/kernel-module/xt_RTPENGINE.c @@ -3443,8 +3443,10 @@ static unsigned int proc_stream_poll(struct file *f, struct poll_table_struct *p DBG("locking stream's packet list lock\n"); spin_lock_irqsave(&stream->packet_list_lock, flags); - if (!list_empty(&stream->packet_list) || stream->eof) + if (!list_empty(&stream->packet_list)) ret |= POLLIN | POLLRDNORM; + if (stream->eof) + ret |= POLLIN | POLLRDNORM | POLLHUP | POLLRDHUP; DBG("returning from proc_stream_poll()\n");