Pass in a pid and return a status instead
Use WEXITSTATUS macro