]> Sergey Matveev's repositories - public-inbox.git/commitdiff
syscall: get rid of unnecessary uname local vars
authorEric Wong <e@80x24.org>
Mon, 24 Jun 2019 02:52:17 +0000 (02:52 +0000)
committerEric Wong <e@80x24.org>
Mon, 24 Jun 2019 05:26:26 +0000 (05:26 +0000)
We don't need to keep information from uname(2) around outside
of startup.

lib/PublicInbox/Syscall.pm

index 98110eaf587573ff829c6fc135876195dbfecbe1..17fd1398ac29bac3b1fcd3246a337151aa824b39 100644 (file)
@@ -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;