about summary refs log tree commit homepage
path: root/t/httpd-corner.t
diff options
context:
space:
mode:
Diffstat (limited to 't/httpd-corner.t')
-rw-r--r--t/httpd-corner.t8
1 files changed, 4 insertions, 4 deletions
diff --git a/t/httpd-corner.t b/t/httpd-corner.t
index 551af2b2..a8cdb2e9 100644
--- a/t/httpd-corner.t
+++ b/t/httpd-corner.t
@@ -553,16 +553,16 @@ SKIP: {
         # filter out pipes inherited from the parent
         my @this = `lsof -p $$`;
         my $bad;
-        sub extract_inodes {
+        my $extract_inodes = sub {
                 map {;
                         my @f = split(' ', $_);
                         my $inode = $f[-2];
                         $bad = $_ if $inode !~ /\A[0-9]+\z/;
                         $inode => 1;
                 } grep (/\bpipe\b/, @_);
-        }
-        my %child = extract_inodes(@lsof);
-        my %parent = extract_inodes(@this);
+        };
+        my %child = $extract_inodes->(@lsof);
+        my %parent = $extract_inodes->(@this);
         skip("inode not in expected format: $bad", 1) if defined($bad);
         delete @child{(keys %parent)};
         is_deeply([], [keys %child], 'no extra pipes with -W0');