Attempt to clarify comment in selrecord.

This commit is contained in:
Alfred Perlstein 2002-07-24 00:29:22 +00:00
parent 711d6888df
commit b605b54ce3

View File

@ -1147,10 +1147,14 @@ selrecord(selector, sip)
mtx_lock(&sellock);
/*
* If the thread is NULL then take ownership of selinfo
* however if the thread is not NULL and the thread points to
* someone else, then we have a collision, otherwise leave it alone
* as we've owned it in a previous selrecord on this selinfo.
* If the selinfo's thread pointer is NULL then take ownership of it.
*
* If the thread pointer is not NULL and it points to another
* thread, then we have a collision.
*
* If the thread pointer is not NULL and points back to us then leave
* it alone as we've already added pointed it at us and added it to
* our list.
*/
if (sip->si_thread == NULL) {
sip->si_thread = selector;