RFR: 8327621: Check return value of uname in os::get_host_name
Johan Sjölen
jsjolen at openjdk.org
Tue Mar 26 11:28:50 UTC 2024
On Thu, 7 Mar 2024 18:25:13 GMT, Johan Sjölen <jsjolen at openjdk.org> wrote:
> Hi,
>
> Trivial bug fix where we didn't check the return value of `uname(2)` on POSIX platforms. I checked callers of `get_host_name` and all wrap the calls in an `if` branch so they already handle failures.
>
> Regards,
> Johan
Hi,
My apologies for the slow update on this, I was busy with other things. I changed the check to `!= -1` and performed the UL warning as per David's and Thomas's suggestion.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/18157#issuecomment-2020169800
More information about the hotspot-runtime-dev
mailing list