pretend to handle the poll return value for -Wunused-but-set

This commit is contained in:
pooka 2014-04-25 12:20:12 +00:00
parent 2678a1c767
commit d9bf6db7cc
1 changed files with 3 additions and 3 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: rumpclient.c,v 1.61 2014/04/03 17:11:35 pooka Exp $ */
/* $NetBSD: rumpclient.c,v 1.62 2014/04/25 12:20:12 pooka Exp $ */
/*
* Copyright (c) 2010, 2011 Antti Kantee. All Rights Reserved.
@ -50,7 +50,7 @@
#define USE_SIGNALFD
#endif
__RCSID("$NetBSD: rumpclient.c,v 1.61 2014/04/03 17:11:35 pooka Exp $");
__RCSID("$NetBSD: rumpclient.c,v 1.62 2014/04/25 12:20:12 pooka Exp $");
#include <sys/param.h>
#include <sys/mman.h>
@ -292,7 +292,7 @@ cliwaitresp(struct spclient *spc, struct respwait *rw, sigset_t *mask,
pfd[1].events = POLLIN;
rv = host_poll(pfd, 2, -1);
if (pfd[1].revents & POLLIN) {
if (rv >= 1 && pfd[1].revents & POLLIN) {
dosig = 1;
goto cleanup;
}