diff options
author | rwatson <rwatson@FreeBSD.org> | 2007-02-13 21:00:57 +0000 |
---|---|---|
committer | rwatson <rwatson@FreeBSD.org> | 2007-02-13 21:00:57 +0000 |
commit | c8c4b22747cb8b7868186a88018870fd13498b9b (patch) | |
tree | 74d152c7f0a63945dc5697fb66d045dc4264109d /sys | |
parent | a9a4d856adbb5a1295bbaf39cf5381d360be5f85 (diff) | |
download | FreeBSD-src-c8c4b22747cb8b7868186a88018870fd13498b9b.zip FreeBSD-src-c8c4b22747cb8b7868186a88018870fd13498b9b.tar.gz |
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.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/kern/uipc_usrreq.c | 1 |
1 files changed, 1 insertions, 0 deletions
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); |