Initialize pid to -1.