Spell 2 as SHUT_RDWR when used as an argument to soshutdown().
This commit is contained in:
parent
71e0ff3811
commit
18b25cc43d
@ -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