Message ID | 1602187438-12464-2-git-send-email-rao.shoaib@oracle.com (mailing list archive) |
---|---|
State | Not Applicable |
Headers | show |
Series | Allow delivery of SIGURG on AF_UNIX streams socket | expand |
diff --git a/net/unix/af_unix.c b/net/unix/af_unix.c index 92784e5..4f01d74 100644 --- a/net/unix/af_unix.c +++ b/net/unix/af_unix.c @@ -1840,8 +1840,6 @@ static int unix_stream_sendmsg(struct socket *sock, struct msghdr *msg, return err; err = -EOPNOTSUPP; - if (msg->msg_flags&MSG_OOB) - goto out_err; if (msg->msg_namelen) { err = sk->sk_state == TCP_ESTABLISHED ? -EISCONN : -EOPNOTSUPP; @@ -1906,6 +1904,9 @@ static int unix_stream_sendmsg(struct socket *sock, struct msghdr *msg, sent += size; } + if (msg->msg_flags & MSG_OOB) + sk_send_sigurg(other); + scm_destroy(&scm); return sent;