Module Name: src
Committed By: pooka
Date: Tue Jan 18 16:00:04 UTC 2011
Modified Files:
src/lib/librumphijack: hijack.c
Log Message:
pollts:
Since fds[] does not go to both kernels, set revents to 0 when
splitting the vector. Now any stale revents passed by the caller
do not get counted as results for the kernel which did not "win"
the poll.
This fixes a situation where a firefox transfer would occasionally
stall. Now firefox works full speed with a rump networking stack.
To generate a diff of this commit:
cvs rdiff -u -r1.12 -r1.13 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.12 src/lib/librumphijack/hijack.c:1.13
--- src/lib/librumphijack/hijack.c:1.12 Tue Jan 18 14:51:14 2011
+++ src/lib/librumphijack/hijack.c Tue Jan 18 16:00:04 2011
@@ -1,4 +1,4 @@
-/* $NetBSD: hijack.c,v 1.12 2011/01/18 14:51:14 pooka Exp $ */
+/* $NetBSD: hijack.c,v 1.13 2011/01/18 16:00:04 pooka Exp $ */
/*-
* Copyright (c) 2011 Antti Kantee. All Rights Reserved.
@@ -26,7 +26,7 @@
*/
#include <sys/cdefs.h>
-__RCSID("$NetBSD: hijack.c,v 1.12 2011/01/18 14:51:14 pooka Exp $");
+__RCSID("$NetBSD: hijack.c,v 1.13 2011/01/18 16:00:04 pooka Exp $");
#include <sys/param.h>
#include <sys/types.h>
@@ -873,6 +873,7 @@
pfd_host[i].fd = fds[i].fd;
pfd_host[i].events = fds[i].events;
}
+ fds[i].revents = 0;
}
/*