Commit b4153ea4 authored by Philippe Gerum's avatar Philippe Gerum

cobalt/rtdm: honor O_NONBLOCK on recvmsg(), sendmsg()

parent 4d4eb409
......@@ -563,6 +563,9 @@ ssize_t rtdm_fd_recvmsg(int ufd, struct user_msghdr *msg, int flags)
trace_cobalt_fd_recvmsg(current, fd, ufd, flags);
if (fd->oflags & O_NONBLOCK)
flags |= MSG_DONTWAIT;
if (ipipe_root_p)
ret = fd->ops->recvmsg_nrt(fd, msg, flags);
else
......@@ -595,6 +598,9 @@ ssize_t rtdm_fd_sendmsg(int ufd, const struct user_msghdr *msg, int flags)
trace_cobalt_fd_sendmsg(current, fd, ufd, flags);
if (fd->oflags & O_NONBLOCK)
flags |= MSG_DONTWAIT;
if (ipipe_root_p)
ret = fd->ops->sendmsg_nrt(fd, msg, flags);
else
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment