Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/kern sel_setevents: fix error - match event-set, as inte...
details: https://anonhg.NetBSD.org/src/rev/1340b6af6171
branches: trunk
changeset: 756323:1340b6af6171
user: rmind <rmind%NetBSD.org@localhost>
date: Mon Jul 12 11:04:25 2010 +0000
description:
sel_setevents: fix error - match event-set, as intended.
Spotted by Enami Tsugutomo.
diffstat:
sys/kern/sys_select.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 39e32e3f2d96 -r 1340b6af6171 sys/kern/sys_select.c
--- a/sys/kern/sys_select.c Mon Jul 12 08:00:51 2010 +0000
+++ b/sys/kern/sys_select.c Mon Jul 12 11:04:25 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: sys_select.c,v 1.26 2010/07/11 11:17:58 rmind Exp $ */
+/* $NetBSD: sys_select.c,v 1.27 2010/07/12 11:04:25 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.26 2010/07/11 11:17:58 rmind Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sys_select.c,v 1.27 2010/07/12 11:04:25 rmind Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -639,7 +639,7 @@
int n;
for (n = 0; n < 3; n++) {
- if (sel_flag[n] | events) {
+ if (sel_flag[n] & events) {
fds[idx] |= 1 << (fd & __NFDMASK);
}
fds = (fd_mask *)((char *)fds + ni);
Home |
Main Index |
Thread Index |
Old Index