I\'m trying to make a process wait for the end of the execution of its child. Although I think I included the correct headers it keeps saying function wait() couldn\'t be re