Called appropriately waitpid() function