mirror of
https://github.com/apache/nuttx.git
synced 2026-05-21 21:34:07 +08:00
drivers/pipes: pipe_common: fix writing large buffers not triggering POLLIN for reader poll
This commit is contained in:
committed by
Gregory Nutt
parent
7b2c2d6bec
commit
1604ae7ca7
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user