CVSROOT:        /cvs
Module name:    src
Changes by:     t...@cvs.openbsd.org    2009/02/19 18:24:05

Modified files:
        lib/librthread : rthread.c 

Log message:
Fix a race in the reaper discovered by Tobias Ulmer.  kevents are identified by 
pid,
so in the event that two threads get the same pid in a row, as the second is 
dying it
will update (not add) the kevent for the previous thread with its own stack, 
which it
will then unmap soon after, which is bad.  Doing the reaping first guarantees 
that there
are no kevents with the same pid as the exiting thread when it registers itself.
ok guenther kurt

Reply via email to