|
From: <sv...@va...> - 2008-05-12 15:46:29
|
Author: sewardj
Date: 2008-05-12 16:46:34 +0100 (Mon, 12 May 2008)
New Revision: 8049
Log:
POST(sys_poll): mark the revents field even when RES==0. Fixes #158425.
(Dave Goodell)
Modified:
trunk/coregrind/m_syswrap/syswrap-generic.c
Modified: trunk/coregrind/m_syswrap/syswrap-generic.c
===================================================================
--- trunk/coregrind/m_syswrap/syswrap-generic.c 2008-05-12 15:25:04 UTC (rev 8048)
+++ trunk/coregrind/m_syswrap/syswrap-generic.c 2008-05-12 15:46:34 UTC (rev 8049)
@@ -5258,7 +5258,7 @@
POST(sys_poll)
{
- if (RES > 0) {
+ if (RES >= 0) {
UInt i;
struct vki_pollfd* ufds = (struct vki_pollfd *)ARG1;
for (i = 0; i < ARG2; i++)
|