mirror of
https://github.com/apache/nuttx.git
synced 2026-05-29 20:56:47 +08:00
nuttx/pty: pass read nonblock flag to pipe
Signed-off-by: fangzhenwei <fangzhenwei@xiaomi.com>
This commit is contained in:
@@ -876,7 +876,11 @@ static int pty_ioctl(FAR struct file *filep, int cmd, unsigned long arg)
|
|||||||
|
|
||||||
case FIONBIO:
|
case FIONBIO:
|
||||||
{
|
{
|
||||||
ret = file_ioctl(&dev->pd_sink, cmd, arg);
|
ret = file_ioctl(&dev->pd_src, cmd, arg);
|
||||||
|
if (ret >= 0 || ret == -ENOTTY)
|
||||||
|
{
|
||||||
|
ret = file_ioctl(&dev->pd_sink, cmd, arg);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user