Added to fork, perror, and wait