The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > High Level Programming
Google UNIX.COM



View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
  #5 (permalink)  
Old 04-07-2008
era era is offline
Herder of Useless Cats
 

Join Date: Mar 2008
Location: /there/is/only/bin/sh
Posts: 2,707
You do get slightly more with WEXITSTATUS(status) after you've done a waitpid(pid, &status, ...) but this was never meant as a facility for anything more than very small integers.

I I understand ramen_noodle's hint correctly, you would have a function pointer "funion" which you run in the child, and which returns its result in the memory location pointed to by anarg.

What are you trying to achieve; why is regular IPC out of the question?
Reply With Quote