Spell 2 as SHUT_RDWR when used as an argument to soshutdown().
This commit is contained in:
parent
79a32d2730
commit
ecd189d420
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=127857
@ -388,7 +388,7 @@ nfs_disconnect(struct nfsmount *nmp)
|
||||
if (nmp->nm_so) {
|
||||
so = nmp->nm_so;
|
||||
nmp->nm_so = NULL;
|
||||
soshutdown(so, 2);
|
||||
soshutdown(so, SHUT_RDWR);
|
||||
soclose(so);
|
||||
}
|
||||
}
|
||||
|
@ -566,7 +566,7 @@ nfsrv_zapsock(struct nfssvc_sock *slp)
|
||||
so->so_rcv.sb_flags &= ~SB_UPCALL;
|
||||
so->so_upcall = NULL;
|
||||
so->so_upcallarg = NULL;
|
||||
soshutdown(so, 2);
|
||||
soshutdown(so, SHUT_RDWR);
|
||||
closef(fp, NULL);
|
||||
if (slp->ns_nam)
|
||||
FREE(slp->ns_nam, M_SONAME);
|
||||
|
Loading…
Reference in New Issue
Block a user