This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: java.lang.Process.exitValue() wrong
- To: Weiqi Gao <weiqigao at networkusa dot net>
- Subject: Re: java.lang.Process.exitValue() wrong
- From: David Vrabel <dv207 at hermes dot cam dot ac dot uk>
- Date: Sun, 23 Sep 2001 15:30:56 +0100 (BST)
- cc: <java at gcc dot gnu dot org>
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