libgcj/4690: Process.exitValue returns incorrect value

shayne@ucdavis.edu shayne@ucdavis.edu
Thu Oct 25 16:46:00 GMT 2001


>Number:         4690
>Category:       libgcj
>Synopsis:       Process.exitValue returns incorrect value
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Oct 25 16:46:01 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     shayne@ucdavis.edu
>Release:        gcc-3.01
>Organization:
>Environment:

>Description:
java::lang::ConcreteProcess::exitValue in
natPosixProcess.cc returns the raw status
value from waitpid().  This value needs
to be run through the WEXITSTATUS() macro
to extract only the exit code of the process.
>How-To-Repeat:

>Fix:
My quick fix was to replace "return status"
with return WEXITSTATUS(status) in 
java::lang::ConcreteProcess::exitValue in 
natPosixProcess.cc
>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the Gcc-prs mailing list