]> git.sesse.net Git - vlc/commitdiff
Use the exception set in poll().
authorRémi Denis-Courmont <rem@videolan.org>
Sat, 9 Feb 2008 21:10:04 +0000 (21:10 +0000)
committerRémi Denis-Courmont <rem@videolan.org>
Sat, 9 Feb 2008 21:10:04 +0000 (21:10 +0000)
This is a theoretical bug fix, as POLLPRI is not used anywhere in VLC.

src/network/poll.c

index 666c812e480af0bd3c42721ac8b016ae2264d356..3fb441319c1ea1d2d1a9b2cafa64f82929a4aad3 100644 (file)
@@ -65,7 +65,7 @@ int poll (struct pollfd *fds, unsigned nfds, int timeout)
         tv.tv_usec = d.rem * 1000;
     }
 
-    val = select (val + 1, &rdset, &wrset, NULL,
+    val = select (val + 1, &rdset, &wrset, &exset,
                   (timeout >= 0) ? &tv : NULL);
     if (val == -1)
         return -1;