nietod
asked on
How do I get a child-process's return value
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.)
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.)
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Out of curioisity. I've been away from EE for a few months now and I'm finidinmg it now has a bizzare layout. the questions themelfs are scrolled WAY of the right side of the page. Are other people experieincing this? Is this under transition?
Under netscape/mozilla, the questions are way on the right side, but konqueror and opera display EE pages normally. IE displays them correctly too.
If you're having problems using the new look, you can still access the old look by prefixing oldlook.
Example:
http://oldlook.experts-exchange.com/questions/20803247/How-do-I-get-a-child-process's-return-value.html
Example:
http://oldlook.experts-exchange.com/questions/20803247/How-do-I-get-a-child-process's-return-value.html
ASKER
I don't know how I missed that.
thanks!!!!!