Skip to content
Snippets Groups Projects
Commit 1604ae7c authored by Jussi Kivilinna's avatar Jussi Kivilinna Committed by Gregory Nutt
Browse files

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

parent 7b2c2d6b
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment