diff --git a/net/local/local_sockif.c b/net/local/local_sockif.c index 2b07921991..98577eb947 100644 --- a/net/local/local_sockif.c +++ b/net/local/local_sockif.c @@ -787,6 +787,26 @@ static int local_ioctl(FAR struct socket *psock, int cmd, unsigned long arg) ret = -ENOTCONN; } break; + case PIPEIOC_POLLINTHRD: + if (conn->lc_infile.f_inode != NULL) + { + ret = file_ioctl(&conn->lc_infile, cmd, arg); + } + else + { + ret = -ENOTCONN; + } + break; + case PIPEIOC_POLLOUTTHRD: + if (conn->lc_outfile.f_inode != NULL) + { + ret = file_ioctl(&conn->lc_outfile, cmd, arg); + } + else + { + ret = -ENOTCONN; + } + break; case BIOC_FLUSH: ret = -EINVAL; break;