mirror of
https://github.com/apache/nuttx.git
synced 2026-05-24 16:11:56 +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:
|
||||
{
|
||||
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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user