drivers/pipes: pipe_common: fix writing large buffers not triggering POLLIN for reader poll

This commit is contained in:
Jussi Kivilinna
2017-09-21 06:32:05 -06:00
committed by Gregory Nutt
parent 7b2c2d6bec
commit 1604ae7ca7
+5 -1
View File
@@ -585,7 +585,7 @@ ssize_t pipecommon_write(FAR struct file *filep, FAR const char *buffer,
sem_post(&dev->d_rdsem);
}
/* Notify all poll/select waiters that they can write to the FIFO */
/* Notify all poll/select waiters that they can read from the FIFO */
pipecommon_pollnotify(dev, POLLIN);
@@ -607,6 +607,10 @@ ssize_t pipecommon_write(FAR struct file *filep, FAR const char *buffer,
{
sem_post(&dev->d_rdsem);
}
/* Notify all poll/select waiters that they can read from the FIFO */
pipecommon_pollnotify(dev, POLLIN);
}
last = nwritten;