about summary refs log tree commit homepage
path: root/lib/PublicInbox/Syscall.pm
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2019-06-24 02:52:17 +0000
committerEric Wong <e@80x24.org>2019-06-24 05:26:26 +0000
commite8dce524749fccb5b0044a92e221b03282f5024e (patch)
tree6dbfd202aa25f20c3d7a3c021bf172b52312dcab /lib/PublicInbox/Syscall.pm
parent7a5794fa02e07507564e8c3d7f2fc646956b66cb (diff)
downloadpublic-inbox-e8dce524749fccb5b0044a92e221b03282f5024e.tar.gz
We don't need to keep information from uname(2) around outside
of startup.
Diffstat (limited to 'lib/PublicInbox/Syscall.pm')
-rw-r--r--lib/PublicInbox/Syscall.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/PublicInbox/Syscall.pm b/lib/PublicInbox/Syscall.pm
index 98110eaf..17fd1398 100644
--- a/lib/PublicInbox/Syscall.pm
+++ b/lib/PublicInbox/Syscall.pm
@@ -59,7 +59,6 @@ sub _load_syscall {
     return $rv;
 }
 
-our ($sysname, $nodename, $release, $version, $machine) = POSIX::uname();
 
 our (
      $SYS_epoll_create,
@@ -71,6 +70,7 @@ our (
 our $no_deprecated = 0;
 
 if ($^O eq "linux") {
+    my $machine = (POSIX::uname())[-1];
     # whether the machine requires 64-bit numbers to be on 8-byte
     # boundaries.
     my $u64_mod_8 = 0;