diff options
author | Nicholas Marriott <nicm@cvs.openbsd.org> | 2009-11-09 17:53:40 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@cvs.openbsd.org> | 2009-11-09 17:53:40 +0000 |
commit | 9473d5ca6183970c256efe065773dda18e76cac4 (patch) | |
tree | c9ec3b4b0898967b165f4e25400b8686f69727b1 /sys/dev/systrace.c | |
parent | 8314ec33d28a7808b9db09541a81f1ac0496c799 (diff) |
Every selwakeup() should have a matching KNOTE() (even if kqueue isn't
supported it doesn't do any harm), so put the KNOTE() in selwakeup() itself and
remove it from any occurences where both are used, except one for kqueue itself
and one in sys_pipe.c (where the selwakeup is under a PIPE_SEL flag).
Based on a diff from tedu.
ok deraadt
Diffstat (limited to 'sys/dev/systrace.c')
-rw-r--r-- | sys/dev/systrace.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/dev/systrace.c b/sys/dev/systrace.c index f3ede4462d1..72db52f030f 100644 --- a/sys/dev/systrace.c +++ b/sys/dev/systrace.c @@ -1,4 +1,4 @@ -/* $OpenBSD: systrace.c,v 1.51 2009/10/31 06:40:16 deraadt Exp $ */ +/* $OpenBSD: systrace.c,v 1.52 2009/11/09 17:53:39 nicm Exp $ */ /* * Copyright 2002 Niels Provos <provos@citi.umich.edu> * All rights reserved. @@ -609,7 +609,6 @@ systrace_wakeup(struct fsystrace *fst) { wakeup((caddr_t)fst); selwakeup(&fst->si); - KNOTE(&fst->si.si_note, 0); } struct proc * |