Descriptionlibmach: fix new thread race with Linux
If you look at the sequence of values returned
by waitpid, it simply tells us about the child of
clone before it tells us that the parent called clone.
There's nothing we can do but assume unexpected
tids are newly cloned children.
Tested with 6prof on godoc.
Fixes issue 251.
Patch Set 1 #Patch Set 2 : code review 2167045: libmach: fix new thread race with Linux #Patch Set 3 : code review 2167045: libmach: fix new thread race with Linux #
MessagesTotal messages: 3
|