Module Name: src
Committed By: pooka
Date: Tue Jan 18 14:51:14 UTC 2011
Modified Files:
src/lib/librumphijack: hijack.c
Log Message:
Don't count sparse elements in the poll vector for host fds.
To generate a diff of this commit:
cvs rdiff -u -r1.11 -r1.12 src/lib/librumphijack/hijack.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/lib/librumphijack/hijack.c
diff -u src/lib/librumphijack/hijack.c:1.11 src/lib/librumphijack/hijack.c:1.12
--- src/lib/librumphijack/hijack.c:1.11 Tue Jan 18 14:45:30 2011
+++ src/lib/librumphijack/hijack.c Tue Jan 18 14:51:14 2011
@@ -1,4 +1,4 @@
-/* $NetBSD: hijack.c,v 1.11 2011/01/18 14:45:30 pooka Exp $ */
+/* $NetBSD: hijack.c,v 1.12 2011/01/18 14:51:14 pooka Exp $ */
/*-
* Copyright (c) 2011 Antti Kantee. All Rights Reserved.
@@ -26,7 +26,7 @@
*/
#include <sys/cdefs.h>
-__RCSID("$NetBSD: hijack.c,v 1.11 2011/01/18 14:45:30 pooka Exp $");
+__RCSID("$NetBSD: hijack.c,v 1.12 2011/01/18 14:51:14 pooka Exp $");
#include <sys/param.h>
#include <sys/types.h>
@@ -772,6 +772,9 @@
nfds_t i;
for (i = 0; i < nfds; i++) {
+ if (fds[i].fd == -1)
+ continue;
+
if (fd_isrump(fds[i].fd))
(*rumpcall)++;
else