This function checks if a process identified by the process ID (PID) is still running.
If the process is live the return value is zero (FALSE), otherwise
a positive value (TRUE) is returned and the second parameter contains
the exited process's final status.
int file_waitpid(long pid,
unsigned long *plExitCode