Use pid_t instead of a regular int to store PIDs
Covers two more functions