
- Use getpgrp() rather than getpgid(0). (getpgrp() is already used elsewhere in this same file.) - Use waitpid(-1, a, b) rather than wait3(a, b, NULL).
- Use getpgrp() rather than getpgid(0). (getpgrp() is already used elsewhere in this same file.) - Use waitpid(-1, a, b) rather than wait3(a, b, NULL).