diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 1999-02-19 15:06:53 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 1999-02-19 15:06:53 +0000 |
commit | 880be7d33edac12068a585d74b52ab58bc84b8ed (patch) | |
tree | 7e8517a5960725eec2306761c1d4b099fd93238a /sys/kern/uipc_socket2.c | |
parent | 5db2e7cc355c30bdd86bb99682166df39a1572fd (diff) |
fixed patch for accept/select race; mycroft@netbsd.org
Diffstat (limited to 'sys/kern/uipc_socket2.c')
-rw-r--r-- | sys/kern/uipc_socket2.c | 4 |
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); |