diff options
author | Štěpán Němec <stepnem@smrk.net> | 2023-08-28 12:42:44 +0200 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2023-08-28 21:32:29 +0000 |
commit | dfa49359f0cc8a13798904c2346dab4607cd9e68 (patch) | |
tree | cfbba328ec2c89c9bcea2d9fa77f6ebe03fe6330 /lib/PublicInbox/Spawn.pm | |
parent | 2565757a2dc6b253888415d83f00b8325d63b33e (diff) | |
download | public-inbox-dfa49359f0cc8a13798904c2346dab4607cd9e68.tar.gz |
Code that could be setting it was removed in 14fa0abdcc7b. Likewise for the double assignment to $err. Fixes: 14fa0abdcc7b ("rewrite Linux nodatacow use in pure Perl w/o system")
Diffstat (limited to 'lib/PublicInbox/Spawn.pm')
-rw-r--r-- | lib/PublicInbox/Spawn.pm | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/PublicInbox/Spawn.pm b/lib/PublicInbox/Spawn.pm index 878843a6..6e33c712 100644 --- a/lib/PublicInbox/Spawn.pm +++ b/lib/PublicInbox/Spawn.pm @@ -293,15 +293,12 @@ ALL_LIBC use Inline C => $all_libc, BUILD_NOISY => 1; EOM my $err = $@; - my $ndc_err = ''; - $err = $@; open(STDERR, '>&', $olderr) or warn "restore stderr: $!"; open(STDOUT, '>&', $oldout) or warn "restore stdout: $!"; if ($err) { seek($fh, 0, SEEK_SET); my @msg = <$fh>; - warn "Inline::C build failed:\n", - $ndc_err, $err, "\n", @msg; + warn "Inline::C build failed:\n", $err, "\n", @msg; $all_libc = undef; } } |