I have two child processes created with fork(), and I need the parent to wait for both of them to finish, but I am only allowed to use the function waitpi
fork()
waitpi