In Java 10, it seems to be impossible to get the exit code of a process referenced by a ProcessHandle after calling onExit whereas we can get it from a Process.
Do you confirm?
Yes, that is right. You can obtain an exit code of a process only if you created it yourself
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With