]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
POST(sys_poll): mark the revents field even when RES==0. Fixes #158425.
authorJulian Seward <jseward@acm.org>
Mon, 12 May 2008 15:46:34 +0000 (15:46 +0000)
committerJulian Seward <jseward@acm.org>
Mon, 12 May 2008 15:46:34 +0000 (15:46 +0000)
(Dave Goodell)

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8049

coregrind/m_syswrap/syswrap-generic.c

index 2a21568f3299bf9c09438d144652f4e4cf8116a7..6b853e003e2fba868ba9c8b268f82517edfdd3d4 100644 (file)
@@ -5258,7 +5258,7 @@ PRE(sys_poll)
 
 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++)