diff options
author | Mikolaj Golub <trociny@FreeBSD.org> | 2012-02-25 10:15:41 +0000 |
---|---|---|
committer | Mikolaj Golub <trociny@FreeBSD.org> | 2012-02-25 10:15:41 +0000 |
commit | 662c901c5429a3d06e28f5ce05df481159fb74c0 (patch) | |
tree | 8d321a0d4dfa05d863db2db15721bdb62ad66f41 /contrib/libarchive/libarchive/test/test_write_disk_secure.c | |
parent | 0caafbf948d81773d22c1c4e1b4d60b437276ae0 (diff) | |
download | src-662c901c5429a3d06e28f5ce05df481159fb74c0.tar.gz src-662c901c5429a3d06e28f5ce05df481159fb74c0.zip |
When detaching an unix domain socket, uipc_detach() checks
unp->unp_vnode pointer to detect if there is a vnode associated with
(binded to) this socket and does necessary cleanup if there is.
The issue is that after forced unmount this check may be too late as
the unp_vnode is reclaimed and the reference is stale.
To fix this provide a helper function that is called on a socket vnode
reclamation to do necessary cleanup.
Pointed by: kib
Reviewed by: kib
MFC after: 2 weeks
Notes
Notes:
svn path=/head/; revision=232152
Diffstat (limited to 'contrib/libarchive/libarchive/test/test_write_disk_secure.c')
0 files changed, 0 insertions, 0 deletions