java.lang.Process.exitValue() wrong

David Vrabel dv207@hermes.cam.ac.uk
Sun Sep 23 07:31:00 GMT 2001


On 23 Sep 2001, Weiqi Gao wrote:
> In GCC 3.0, on both Solaris/sparc and Linux/intel, I have encountered
> the following problems: [odd return value after a Process.waitFor()].

I believe the system call wait() (which presumably Process.waitFor() is
using returns an encoded value containing the process return value and how
the process was terminated. Read the man page for wait() for details.
David Vrabel


More information about the Java mailing list

AltStyle によって変換されたページ (->オリジナル) /