Durga Deep Tirunagari wrote:
Hi Folks,
We were recently developing a Cluster solution for our product. And we are
planning on using the isaexec approach.
http://docs.sun.com/app/docs/doc/816-5138/6mba6ua5n?a=view
Create Hardlinks to various executables and following the isaexec approach of
getexecname() and executing the appropriate binary
isaexec does a (void) execve(mybinary, argv, envp); to execute the actual
binary.
But how do I get the return value of the binary, I know that exec family of
functions won't return any value ?. Is there any way i can get the return value
of mybinary after it executes ?. Say if mybinary returns 1 ( failure ) 2 (
success ) 4 ( some thing else )..
_Thanks much
D
The exec'ed image replaces the current image, and when the exec'ed binary
exits, that exit code is returned from the process.
_______________________________________________
opensolaris-code mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/opensolaris-code