Commit 3c7456c1 authored by Brad Fitzpatrick's avatar Brad Fitzpatrick
Browse files

os: find Hostname using Uname to fix Android

It's also fewer system calls. Fall back to longer read
only if it seems like the Uname result is truncated.

Fixes #24701

Change-Id: Ib6550acede8dddaf184e8fa9de36377e17bbddab
Reviewed-on: https://go-review.googlesource.com/110295


Reviewed-by: default avatarIan Lance Taylor <iant@golang.org>
parent 4bced5e9
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment