diff options
| author | 2009-11-09 17:53:38 +0000 | |
|---|---|---|
| committer | 2009-11-09 17:53:38 +0000 | |
| commit | 270ebf02128560a47b9b980515d58ee07855c8d6 (patch) | |
| tree | 06084a8310af5d7c4a5ed9051f17b82a6efd7075 /sys/kern/sys_generic.c | |
| parent | document -F downgrades (note: for now, it's just the package name, we should (diff) | |
| download | wireguard-openbsd-270ebf02128560a47b9b980515d58ee07855c8d6.tar.xz wireguard-openbsd-270ebf02128560a47b9b980515d58ee07855c8d6.zip | |
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/kern/sys_generic.c')
| -rw-r--r-- | sys/kern/sys_generic.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/kern/sys_generic.c b/sys/kern/sys_generic.c index 93f1ebed199..70e3ac8c8cc 100644 --- a/sys/kern/sys_generic.c +++ b/sys/kern/sys_generic.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sys_generic.c,v 1.66 2009/06/08 23:18:42 deraadt Exp $ */ +/* $OpenBSD: sys_generic.c,v 1.67 2009/11/09 17:53:39 nicm Exp $ */ /* $NetBSD: sys_generic.c,v 1.24 1996/03/29 00:25:32 cgd Exp $ */ /* @@ -708,6 +708,7 @@ selwakeup(struct selinfo *sip) struct proc *p; int s; + KNOTE(&sip->si_note, 0); if (sip->si_selpid == 0) return; if (sip->si_flags & SI_COLL) { |
