]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
In closef(), remove the assumption that there is a thread associated
authorRobert Watson <rwatson@FreeBSD.org>
Wed, 9 Nov 2005 20:54:25 +0000 (20:54 +0000)
committerRobert Watson <rwatson@FreeBSD.org>
Wed, 9 Nov 2005 20:54:25 +0000 (20:54 +0000)
commit923633b4b5e697341f7ebd04f95d58b547604d44
tree43bbaf25be936ae882dd0916527462579b47ae29
parent73c0fce2e11e32caee39fc25da321298b98348fd
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
sys/kern/kern_descrip.c