Integrated: 8327621: Check return value of uname in os::get_host_name
Johan Sjölen
jsjolen at openjdk.org
Wed Apr 10 08:15:12 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
This pull request has now been integrated.
Changeset: 51ed69a5
Author: Johan Sjölen <jsjolen at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/51ed69a586105b707ae616f9eba898449bf9fba7
Stats: 8 lines in 1 file changed: 5 ins; 0 del; 3 mod
8327621: Check return value of uname in os::get_host_name
Reviewed-by: dholmes, stuefe
-------------
PR: https://git.openjdk.org/jdk/pull/18157
More information about the hotspot-runtime-dev
mailing list