summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorByron Jones <bjones@mozilla.com>2012-04-19 19:13:10 +0200
committerByron Jones <bjones@mozilla.com>2012-04-19 19:13:10 +0200
commit0717a2d3f2a94320d1ced1f7dcaa2f3e14d68bcd (patch)
tree73fefa9a3a324cf730b9a3cf3054e6575e216256
parenta7ea4cc08af57c63c496b28db419887ab7f77dbb (diff)
downloadbugzilla-0717a2d3f2a94320d1ced1f7dcaa2f3e14d68bcd.tar.gz
bugzilla-0717a2d3f2a94320d1ced1f7dcaa2f3e14d68bcd.tar.xz
Bug 747016: fix uninit warning in report.cgi, and nice the forked arecibo process
-rw-r--r--Bugzilla/Arecibo.pm5
1 files changed, 3 insertions, 2 deletions
diff --git a/Bugzilla/Arecibo.pm b/Bugzilla/Arecibo.pm
index 7a3b1fc49..de7158349 100644
--- a/Bugzilla/Arecibo.pm
+++ b/Bugzilla/Arecibo.pm
@@ -20,9 +20,9 @@ our @EXPORT = qw(
use Apache2::Log;
use Apache2::SubProcess;
use Carp;
-use Email::Date::Format 'email_gmdate';
+use Email::Date::Format qw(email_gmdate);
use LWP::UserAgent;
-use POSIX 'setsid';
+use POSIX qw(setsid nice);
use Sys::Hostname;
use Bugzilla::Util;
@@ -200,6 +200,7 @@ sub arecibo_handle_error {
open(STDOUT, '>/dev/null');
open(STDERR, '>/dev/null');
setsid();
+ nice(19);
# post to arecibo (ignore any errors)
my $agent = LWP::UserAgent->new(