RFR: 8327621: Check return value of uname in os::get_host_name
Johan Sjölen
jsjolen at openjdk.org
Thu Mar 7 18:29:17 UTC 2024
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
-------------
Commit messages:
- Check the return value of uname
Changes: https://git.openjdk.org/jdk/pull/18157/files
Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=18157&range=00
Issue: https://bugs.openjdk.org/browse/JDK-8327621
Stats: 5 lines in 1 file changed: 2 ins; 0 del; 3 mod
Patch: https://git.openjdk.org/jdk/pull/18157.diff
Fetch: git fetch https://git.openjdk.org/jdk.git pull/18157/head:pull/18157
PR: https://git.openjdk.org/jdk/pull/18157
More information about the hotspot-runtime-dev
mailing list