Module Name: src
Committed By: rmind
Date: Sun Jul 11 11:17:58 UTC 2010
Modified Files:
src/sys/kern: sys_select.c
Log Message:
Disable direct select for now, since it still brings problems.
To generate a diff of this commit:
cvs rdiff -u -r1.25 -r1.26 src/sys/kern/sys_select.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/kern/sys_select.c
diff -u src/sys/kern/sys_select.c:1.25 src/sys/kern/sys_select.c:1.26
--- src/sys/kern/sys_select.c:1.25 Sat Jul 10 17:04:25 2010
+++ src/sys/kern/sys_select.c Sun Jul 11 11:17:58 2010
@@ -1,4 +1,4 @@
-/* $NetBSD: sys_select.c,v 1.25 2010/07/10 17:04:25 rmind Exp $ */
+/* $NetBSD: sys_select.c,v 1.26 2010/07/11 11:17:58 rmind Exp $ */
/*-
* Copyright (c) 2007, 2008, 2009, 2010 The NetBSD Foundation, Inc.
@@ -84,7 +84,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: sys_select.c,v 1.25 2010/07/10 17:04:25 rmind Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sys_select.c,v 1.26 2010/07/11 11:17:58 rmind Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -689,7 +689,11 @@
*/
l = sip->sel_lwp;
oflag = l->l_selflag;
+#ifdef DIRECT_SELECT
sel_setevents(l, sip, events);
+#else
+ l->l_selflag = SEL_RESET;
+#endif
/*
* If thread is sleeping, wake it up. If it's not
* yet asleep, it will notice the change in state