Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/kern Disable direct select for now, since it still bring...
details: https://anonhg.NetBSD.org/src/rev/e39b0b668458
branches: trunk
changeset: 756299:e39b0b668458
user: rmind <rmind%NetBSD.org@localhost>
date: Sun Jul 11 11:17:58 2010 +0000
description:
Disable direct select for now, since it still brings problems.
diffstat:
sys/kern/sys_select.c | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
diffs (30 lines):
diff -r 94dde2b0b4f1 -r e39b0b668458 sys/kern/sys_select.c
--- a/sys/kern/sys_select.c Sun Jul 11 11:17:27 2010 +0000
+++ b/sys/kern/sys_select.c Sun Jul 11 11:17:58 2010 +0000
@@ -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
Home |
Main Index |
Thread Index |
Old Index