mirror of
https://github.com/apache/nuttx.git
synced 2026-06-07 01:05:54 +08:00
nuttx/pty: pty FIONBIO return -ENOTTY when pipe_ioctl return OK
Signed-off-by: fangzhenwei <fangzhenwei@xiaomi.com>
This commit is contained in:
@@ -881,6 +881,13 @@ static int pty_ioctl(FAR struct file *filep, int cmd, unsigned long arg)
|
||||
{
|
||||
ret = file_ioctl(&dev->pd_sink, cmd, arg);
|
||||
}
|
||||
|
||||
/* Let the default handler set O_NONBLOCK flags for us. */
|
||||
|
||||
if (ret >= 0)
|
||||
{
|
||||
ret = -ENOTTY;
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user