[FIX] fix pid tid get functions on fork