RFR: 8333742: ProcessImpl and ProcessHandleImpl may mishandle processes that exit with code 259
Roger Riggs
rriggs at openjdk.org
Fri Jun 7 21:03:11 UTC 2024
On Fri, 7 Jun 2024 20:52:38 GMT, Daniel Jeliński <djelinski at openjdk.org> wrote:
>> The `WaitForSingleObject(handle, 0)` seems like an indirect way to determine if the process is alive.
>> Whereas `isProcessAlive(handle)` seems to directly answer the question.
>
> sorry, I still don't get it. Are you telling me that I should use isProcessAlive to implement isProcessAlive? Because it doesn't look like a WinAPI function name,
I take it back.
It was just wishful thinking that Windows had the obvious API.
And I've intermingled Java methods for native methods.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/19586#discussion_r1631681720
More information about the core-libs-dev
mailing list