- or download this
use run_limited; # I need a better name
my $runner = Runner->new; # got to get the names straight
$runner->load('true');
$runner->load('sleep 2');
$runner->run("$timeout");
- or download this
$VAR1 = \bless( {
'sleep 999' => {
...
'stdout' => bless( [], 'Thread::Queue'
+)
}
}, 'Runner' );
- or download this
$stdout=$runner->stdout($command);
$stderr=$runner->stderr($command);
... etc ...
- or download this
#!/usr/bin/perl
#
...
# the following right bracket closes the package
}
1;
- or download this
#!/usr/bin/perl
use strict;
...
is ($runner->run("$timeout"), 1, "Check correct number had to be kille
+d");
print Dumper(\$runner);
- or download this
our $sigpipe=0;
$SIG{PIPE}=sub{$sigpipe++};