summaryrefslogtreecommitdiffstats
path: root/Bugzilla/JobQueue
diff options
context:
space:
mode:
authorDylan William Hardison <dylan@hardison.net>2018-03-29 21:54:54 +0200
committerGitHub <noreply@github.com>2018-03-29 21:54:54 +0200
commitf58deda411a1f9c260b293ecd58e37843c2debca (patch)
treee06931c3238fc894d662bf16a0f6f1d7893c1ea2 /Bugzilla/JobQueue
parent0225ce6e5b34ce3fc3e874efc3c0f249a5b4a1c2 (diff)
downloadbugzilla-f58deda411a1f9c260b293ecd58e37843c2debca.tar.gz
bugzilla-f58deda411a1f9c260b293ecd58e37843c2debca.tar.xz
Bug 1450010 - The jobqueue supervisor's pidfile should not be stored in the data directory
Diffstat (limited to 'Bugzilla/JobQueue')
-rw-r--r--Bugzilla/JobQueue/Runner.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/Bugzilla/JobQueue/Runner.pm b/Bugzilla/JobQueue/Runner.pm
index 5cf7d82eb..0177de40a 100644
--- a/Bugzilla/JobQueue/Runner.pm
+++ b/Bugzilla/JobQueue/Runner.pm
@@ -26,7 +26,7 @@ use Cwd qw(abs_path);
use English qw(-no_match_vars $PROGRAM_NAME $EXECUTABLE_NAME);
use File::Basename;
use File::Copy;
-use File::Spec::Functions qw(catfile);
+use File::Spec::Functions qw(catfile tmpdir);
use Future;
use Future::Utils qw(fmap_void);
use IO::Async::Loop;
@@ -52,7 +52,7 @@ sub gd_preconfig {
my $pidfile = $self->{gd_args}{pidfile};
if ( !$pidfile ) {
- $pidfile = bz_locations()->{datadir} . '/' . $self->{gd_progname} . '.pid';
+ $pidfile = catfile(tmpdir(), $self->{gd_progname} . '.pid');
}
return ( pidfile => $pidfile );
}