java.lang.Process.exitValue() wrong

Bryce McKinlay bryce@waitaki.otago.ac.nz
Sun Sep 23 21:49:00 GMT 2001


Weiqi Gao wrote:

>>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.
>>
>
>Then the implementation of java.lang.Process should probably use the
>appropriate macros to extract the true status and return that from
>waitFor() and exitValue().
>

Yep. Here's a patch, which I am checking in.

regards

Bryce.




More information about the Java mailing list