On Mon, 2007-03-26 at 11:09 -0700, Durga Deep Tirunagari wrote:
> 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 )..

The *function* doesn't return any value, because a proper exec*()
doesn't return at all.  From the manpage: "Each of the  functions  in
the exec family replaces the current process image with a new process
image."

Once isaexec does the execve(), it's gone.  The new binary is executing
in its place, just as if you'd run it in the first place.  I assume
you're after the value returned by exit(), right?


_______________________________________________
opensolaris-discuss mailing list
opensolaris-discuss@opensolaris.org

Reply via email to