From c8c4b22747cb8b7868186a88018870fd13498b9b Mon Sep 17 00:00:00 2001 From: rwatson Date: Tue, 13 Feb 2007 21:00:57 +0000 Subject: Set UNP_CONNECTING when committing to moving ahead in unp_connect(). This logic was lost when merging the remainder of these changes in 1.178. --- sys/kern/uipc_usrreq.c | 1 + 1 file changed, 1 insertion(+) (limited to 'sys') diff --git a/sys/kern/uipc_usrreq.c b/sys/kern/uipc_usrreq.c index eabe2ff..5238fe5 100644 --- a/sys/kern/uipc_usrreq.c +++ b/sys/kern/uipc_usrreq.c @@ -952,6 +952,7 @@ unp_connect(struct socket *so, struct sockaddr *nam, struct thread *td) UNP_UNLOCK(); return (EALREADY); } + unp->unp_flags |= UNP_CONNECTING; UNP_UNLOCK(); sa = malloc(sizeof(struct sockaddr_un), M_SONAME, M_WAITOK); mtx_lock(&Giant); -- cgit v1.1