]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 1450010 - The jobqueue supervisor's pidfile should not be stored in the data...
authorDylan William Hardison <dylan@hardison.net>
Thu, 29 Mar 2018 19:54:54 +0000 (15:54 -0400)
committerGitHub <noreply@github.com>
Thu, 29 Mar 2018 19:54:54 +0000 (15:54 -0400)
Bugzilla/JobQueue/Runner.pm

index 5cf7d82eba4578b24623925b778b8db4fc85c048..0177de40a690d4bd251df94975a6ef1e4aa01a50 100644 (file)
@@ -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 );
 }