Commit 78f1dd89 authored by Jinoh Kang's avatar Jinoh Kang Committed by Alexandre Julliard

server: Use POLLIN instead of POLLPRI if the socket is in oobinline mode.

parent 189f8941
......@@ -3470,7 +3470,7 @@ DECL_HANDLER(recv_socket)
*/
struct pollfd pollfd;
pollfd.fd = get_unix_fd( sock->fd );
pollfd.events = req->oob ? POLLPRI : POLLIN;
pollfd.events = req->oob && !is_oobinline( sock ) ? POLLPRI : POLLIN;
pollfd.revents = 0;
if (poll(&pollfd, 1, 0) >= 0 && pollfd.revents)
{
......
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