Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/librumpclient pretend to handle the poll return value fo...
details: https://anonhg.NetBSD.org/src/rev/3f03234dd5eb
branches: trunk
changeset: 328937:3f03234dd5eb
user: pooka <pooka%NetBSD.org@localhost>
date: Fri Apr 25 12:20:12 2014 +0000
description:
pretend to handle the poll return value for -Wunused-but-set
diffstat:
lib/librumpclient/rumpclient.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 433c68361717 -r 3f03234dd5eb lib/librumpclient/rumpclient.c
--- a/lib/librumpclient/rumpclient.c Fri Apr 25 12:11:27 2014 +0000
+++ b/lib/librumpclient/rumpclient.c Fri Apr 25 12:20:12 2014 +0000
@@ -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 @@
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;
}
Home |
Main Index |
Thread Index |
Old Index