Avoid crash when pid is nagative value