]> git.saurik.com Git - apple/xnu.git/blobdiff - bsd/kern/sys_generic.c
xnu-124.7.tar.gz
[apple/xnu.git] / bsd / kern / sys_generic.c
index b8c6e975e59f2e6a92cca0afe10967e6b38c726f..cf5878004393bd4e4602c720be00e8827309dc01 100644 (file)
@@ -720,13 +720,10 @@ selrecord(selector, sip)
        } else {
                sip->si_thread = my_thread;
                splx(oldpri);
+               act_reference(current_act());
                if (selthread) {
-                       /* thread_deallocate(selthread); */
                        act_deallocate(getact_thread(selthread));
                }
-               /* do I need act reference ??? */
-               /* thread_reference(sip->si_thread); */
-               act_reference(getact_thread(sip->si_thread));
        }
 
        return;