Finish SELinux policy ad fix some bugs
[gruntmaster-daemon.git] / lib / Gruntmaster / Daemon / Format / CPP.pm
index 707af32bfc6b7c04bf7ad587783202b67cb02e24..828252a58c037cb0f4419bf07c563bad09e11d13 100644 (file)
@@ -53,10 +53,10 @@ sub run{
        die [DIED, "Crash (SIG$signame)"] if $sig;
        die [NZX, "Non-zero exit status: " . ($? >> 8)] if $?;
   } else {
-       $^F = 50;
-       POSIX::close $_ for 0, 1, 3 .. $^F;
        my @fds = exists $args{fds} ? @{$args{fds}} : ();
        get_logger->trace("Running $basename with fds ". join ' ', @fds);
+       $^F = 50;
+       POSIX::close $_ for 0, 1, 3 .. $^F;
        my $it = natatime 2, @fds;
        while (my ($fd, $file) = $it->()) {
          open my $fh, $file or die $!;
This page took 0.00999 seconds and 4 git commands to generate.