diff options
author | rwatson <rwatson@FreeBSD.org> | 2005-11-09 20:54:25 +0000 |
---|---|---|
committer | rwatson <rwatson@FreeBSD.org> | 2005-11-09 20:54:25 +0000 |
commit | 6b8f490b777875eac382dcd10325ccfef5a77fe8 (patch) | |
tree | 43bbaf25be936ae882dd0916527462579b47ae29 /tools | |
parent | 07c0605ab8ee1d858a12347a7df2bf7417c35120 (diff) | |
download | FreeBSD-src-6b8f490b777875eac382dcd10325ccfef5a77fe8.zip FreeBSD-src-6b8f490b777875eac382dcd10325ccfef5a77fe8.tar.gz |
In closef(), remove the assumption that there is a thread associated
with the file descriptor. When a file descriptor is closed as a result
of garbage collecting a UNIX domain socket, the file descriptor will
not have any associated thread, so the logic to identify advisory locks
held by that thread is not appropriate. Check the thread for NULL to
avoid this scenario. Expand an existing comment to say a bit more about
this.
MFC after: 1 week
Diffstat (limited to 'tools')
0 files changed, 0 insertions, 0 deletions