summaryrefslogtreecommitdiff
path: root/compat/poll/poll.c
diff options
context:
space:
mode:
Diffstat (limited to 'compat/poll/poll.c')
-rw-r--r--compat/poll/poll.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/compat/poll/poll.c b/compat/poll/poll.c
index b10adc7..7ed3fbb 100644
--- a/compat/poll/poll.c
+++ b/compat/poll/poll.c
@@ -16,8 +16,7 @@
GNU General Public License for more details.
You should have received a copy of the GNU General Public License along
- with this program; if not, write to the Free Software Foundation,
- Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */
+ with this program; if not, see <http://www.gnu.org/licenses/>. */
/* Tell gcc not to warn about the (nfd < 0) tests, below. */
#if (__GNUC__ == 4 && 3 <= __GNUC_MINOR__) || 4 < __GNUC__
@@ -438,6 +437,10 @@ poll (struct pollfd *pfd, nfds_t nfd, int timeout)
pfd[i].revents = happened;
rc++;
}
+ else
+ {
+ pfd[i].revents = 0;
+ }
}
return rc;