summaryrefslogtreecommitdiffstats
path: root/jobqueue-worker.pl
diff options
context:
space:
mode:
authorPerl Tidy <perltidy@bugzilla.org>2018-12-05 21:38:52 +0100
committerDylan William Hardison <dylan@hardison.net>2018-12-05 23:49:08 +0100
commit8ec8da0491ad89604700b3e29a227966f6d84ba1 (patch)
tree9d270f173330ca19700e0ba9f2ee931300646de1 /jobqueue-worker.pl
parenta7bb5a65b71644d9efce5fed783ed545b9336548 (diff)
downloadbugzilla-8ec8da0491ad89604700b3e29a227966f6d84ba1.tar.gz
bugzilla-8ec8da0491ad89604700b3e29a227966f6d84ba1.tar.xz
no bug - reformat all the code using the new perltidy rules
Diffstat (limited to 'jobqueue-worker.pl')
-rwxr-xr-xjobqueue-worker.pl21
1 files changed, 11 insertions, 10 deletions
diff --git a/jobqueue-worker.pl b/jobqueue-worker.pl
index b26aacdba..566cfdedd 100755
--- a/jobqueue-worker.pl
+++ b/jobqueue-worker.pl
@@ -14,10 +14,10 @@ use File::Basename qw(basename dirname);
use File::Spec::Functions qw(catdir rel2abs);
BEGIN {
- require lib;
- my $dir = rel2abs( dirname(__FILE__) );
- lib->import( $dir, catdir( $dir, 'lib' ), catdir( $dir, qw(local lib perl5) ) );
- chdir $dir or die "chdir $dir failed: $!";
+ require lib;
+ my $dir = rel2abs(dirname(__FILE__));
+ lib->import($dir, catdir($dir, 'lib'), catdir($dir, qw(local lib perl5)));
+ chdir $dir or die "chdir $dir failed: $!";
}
@@ -31,17 +31,18 @@ use if $OSNAME eq 'linux', 'Linux::Pdeathsig', 'set_pdeathsig';
BEGIN { Bugzilla->extensions }
my $name = basename(__FILE__);
-GetOptions( 'name=s' => \$name );
+GetOptions('name=s' => \$name);
if ($name) {
- ## no critic (Variables::RequireLocalizedPunctuationVars)
- $PROGRAM_NAME = $name;
- ## use critic
+ ## no critic (Variables::RequireLocalizedPunctuationVars)
+ $PROGRAM_NAME = $name;
+ ## use critic
}
if ($OSNAME eq 'linux') {
- # get SIGTEMR (15) when parent exits.
- set_pdeathsig(15);
+
+ # get SIGTEMR (15) when parent exits.
+ set_pdeathsig(15);
}
Bugzilla::JobQueue::Worker->run('work');