This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: java.lang.Process.exitValue() wrong


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]