8226242 : Diagnostic output for posix_spawn failure

Roger Riggs Roger.Riggs at oracle.com
Mon Jun 17 17:19:26 UTC 2019


Hi Thomas,

yes, I meant WTERMSIG.  I figured the useful info was the value of those 
two fields of the status
but a bit easier to read than the hex formatted value.
If there is any other information available at that point of execution, 
let me know.

Thanks, Roger

[1] 
http://cr.openjdk.java.net/~rriggs/webrev-spawn-diag-8225192-1/index.html

On 6/17/19 1:08 PM, Thomas Stüfe wrote:
> Hi Roger,
>
> thanks for taking care of this!
>
> I think WIFSIGNALED is just a bool though; to get the terminating 
> signal, you need to use WTERMSIG. Strictly speaking, WEXISTSTATUS is 
> only valid if WIFEXITED!=0 and WTERMSIG only if WIFSIGNALLED!=0; I 
> think they are undefined otherwise.

They are undefined, yet still extract the values from the status return 
from waitpid.
>
> Cheers, Thoams
>
>
>
> On Mon, Jun 17, 2019 at 6:04 PM Roger Riggs <Roger.Riggs at oracle.com 
> <mailto:Roger.Riggs at oracle.com>> wrote:
>
>     Please review adding diagnostic information to the native code
>     handing
>     failures
>     to exec the jspawnhelper.  Some information about the child process
>     status can be included.
>
>     Jira:
>        diag task: https://bugs.openjdk.java.net/browse/JDK-8226242
>        Issue: https://bugs.openjdk.java.net/browse/JDK-8226192
>
>     Webrev:
>     http://cr.openjdk.java.net/~rriggs/webrev-spawn-diag-8225192/
>
>     Thanks, Roger
>



More information about the core-libs-dev mailing list