summaryrefslogtreecommitdiffstats
path: root/sys/kern/uipc_socket2.c
diff options
context:
space:
mode:
authormillert <millert@openbsd.org>1999-02-19 15:06:52 +0000
committermillert <millert@openbsd.org>1999-02-19 15:06:52 +0000
commit751be64b49462411917d2649eb9f524543df0267 (patch)
tree5e63935211432c14556731fae48763695909a481 /sys/kern/uipc_socket2.c
parentBe a little more verbose about dodgy looking authentication (diff)
downloadwireguard-openbsd-751be64b49462411917d2649eb9f524543df0267.tar.xz
wireguard-openbsd-751be64b49462411917d2649eb9f524543df0267.zip
fixed patch for accept/select race; mycroft@netbsd.org
Diffstat (limited to 'sys/kern/uipc_socket2.c')
-rw-r--r--sys/kern/uipc_socket2.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/uipc_socket2.c b/sys/kern/uipc_socket2.c
index 7816894f6c9..e1ea890769f 100644
--- a/sys/kern/uipc_socket2.c
+++ b/sys/kern/uipc_socket2.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: uipc_socket2.c,v 1.9 1999/02/18 22:56:58 deraadt Exp $ */
+/* $OpenBSD: uipc_socket2.c,v 1.10 1999/02/19 15:06:52 millert Exp $ */
/* $NetBSD: uipc_socket2.c,v 1.11 1996/02/04 02:17:55 christos Exp $ */
/*
@@ -135,7 +135,7 @@ soisdisconnected(so)
{
so->so_state &= ~(SS_ISCONNECTING|SS_ISCONNECTED|SS_ISDISCONNECTING);
- so->so_state |= (SS_CANTRCVMORE|SS_CANTSENDMORE);
+ so->so_state |= (SS_CANTRCVMORE|SS_CANTSENDMORE|SS_ISDISCONNECTED);
wakeup((caddr_t)&so->so_timeo);
sowwakeup(so);
sorwakeup(so);