diff options
author | Eric Wong <e@80x24.org> | 2020-12-17 19:40:06 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2020-12-18 22:29:43 +0000 |
commit | 8f4253f567852ef56e3a484c9881d4f113e5dc89 (patch) | |
tree | 5b456bf16109a82508bbfe1b55dfde9dfdd80042 /lib/PublicInbox/WwwStream.pm | |
parent | fef8202d2e176bc93fce94c7be82ebab936a43da (diff) | |
download | public-inbox-8f4253f567852ef56e3a484c9881d4f113e5dc89.tar.gz |
It's likely most GNU/Linux systems have /etc/machine-id these days, so anything missing it is likely a *BSD, most of which support and favor "sysctl -n kern.hostid". We'll also support "ghostid" since GNU utils are commonly prefixed with 'g' on non-GNU platforms. In any case, we'll suppress stderr from missing commands and fall back to hard coding an $OSNAME-based identifier as a last resort and hope the hostname is unique.
Diffstat (limited to 'lib/PublicInbox/WwwStream.pm')
0 files changed, 0 insertions, 0 deletions