summaryrefslogtreecommitdiffstats
path: root/sys/dev/rnd.c
diff options
context:
space:
mode:
authornicm <nicm@openbsd.org>2009-11-09 17:53:38 +0000
committernicm <nicm@openbsd.org>2009-11-09 17:53:38 +0000
commit270ebf02128560a47b9b980515d58ee07855c8d6 (patch)
tree06084a8310af5d7c4a5ed9051f17b82a6efd7075 /sys/dev/rnd.c
parentdocument -F downgrades (note: for now, it's just the package name, we should (diff)
downloadwireguard-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/dev/rnd.c')
-rw-r--r--sys/dev/rnd.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/dev/rnd.c b/sys/dev/rnd.c
index 0443af856ed..25c8e8ff9fc 100644
--- a/sys/dev/rnd.c
+++ b/sys/dev/rnd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rnd.c,v 1.100 2009/06/05 04:43:23 guenther Exp $ */
+/* $OpenBSD: rnd.c,v 1.101 2009/11/09 17:53:39 nicm Exp $ */
/*
* rnd.c -- A strong random number generator
@@ -732,7 +732,6 @@ dequeue_randomness(void *v)
rs->asleep--;
wakeup((void *)&rs->asleep);
selwakeup(&rnd_rsel);
- KNOTE(&rnd_rsel.si_note, 0);
}
mtx_enter(&rndlock);