summaryrefslogtreecommitdiffstats
path: root/usr.bin/systat/ifstat.c
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2008-01-11 23:57:39 +0000
committerjhb <jhb@FreeBSD.org>2008-01-11 23:57:39 +0000
commit41560caefda371e018be6f679ded9c36742c2360 (patch)
treeac7d8d15c5502c5f5153283626cab40183a2fa33 /usr.bin/systat/ifstat.c
parent171437d67cfa236655fe6e9050a0827c2e4af500 (diff)
downloadFreeBSD-src-41560caefda371e018be6f679ded9c36742c2360.zip
FreeBSD-src-41560caefda371e018be6f679ded9c36742c2360.tar.gz
The previous revision broke the case of reconnecting to a TCP NFS server
via a new socket during an NFS operation as that reconnect takes place in the context of an arbitrary thread with an arbitrary credential. Ideally we would like to use the mount point's credential for the entire process of setting up the socket to connect to the NFS server. Since some of the APIs (sobind(), etc.) only take a thread pointer and infer the credential from that instead of a direct credential, work around the problem by temporarily changing the current thread's credential to that of the mount point while connecting the socket and then reverting back to the original credential when we are done. Reviewed by: rwatson Tested on: UDP, TCP, TCP with forced reconnect
Diffstat (limited to 'usr.bin/systat/ifstat.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud