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/uipc_socket2.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/uipc_socket2.c')
-rw-r--r-- | sys/kern/uipc_socket2.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/kern/uipc_socket2.c b/sys/kern/uipc_socket2.c index bb53e2cc12d..45c335f8236 100644 --- a/sys/kern/uipc_socket2.c +++ b/sys/kern/uipc_socket2.c @@ -1,4 +1,4 @@ -/* $OpenBSD: uipc_socket2.c,v 1.49 2009/08/10 16:49:39 thib Exp $ */ +/* $OpenBSD: uipc_socket2.c,v 1.50 2009/11/09 17:53:39 nicm Exp $ */ /* $NetBSD: uipc_socket2.c,v 1.11 1996/02/04 02:17:55 christos Exp $ */ /* @@ -318,7 +318,6 @@ sowakeup(struct socket *so, struct sockbuf *sb) } if (so->so_state & SS_ASYNC) csignal(so->so_pgid, SIGIO, so->so_siguid, so->so_sigeuid); - KNOTE(&sb->sb_sel.si_note, 0); } /* |