This is for a C++ program.
I have a program where I fork and exec to create a child process then waitpid to wait for it to end. Then I need to get the value the child process returned but I cannot seem to find any system calls to do this. How do I do this? (I probably just need the name of the system call, I can probalby take it from there.)