diff options
author | Dylan William Hardison <dylan@hardison.net> | 2018-06-21 17:21:55 +0200 |
---|---|---|
committer | Dylan William Hardison <dylan@hardison.net> | 2018-06-28 22:41:59 +0200 |
commit | 3e390abcc1781fc64bc55e7a36a175d0fd9deeb4 (patch) | |
tree | e874c1b949609bf041372e7c261b0ef349e1d56b | |
parent | 64830ef3c076b72d9da3eb590f22bc4d722c8d4c (diff) | |
download | bugzilla-3e390abcc1781fc64bc55e7a36a175d0fd9deeb4.tar.gz bugzilla-3e390abcc1781fc64bc55e7a36a175d0fd9deeb4.tar.xz |
move PerlInitChildHandler to mojolicious
-rw-r--r-- | Bugzilla/Quantum.pm | 1 | ||||
-rw-r--r-- | Bugzilla/Quantum/Plugin/Glue.pm | 5 |
2 files changed, 4 insertions, 2 deletions
diff --git a/Bugzilla/Quantum.pm b/Bugzilla/Quantum.pm index 0ee4c8798..9457da311 100644 --- a/Bugzilla/Quantum.pm +++ b/Bugzilla/Quantum.pm @@ -21,7 +21,6 @@ use Bugzilla::CGI (); use Bugzilla::Extension (); use Bugzilla::Install::Requirements (); use Bugzilla::Util (); -use Bugzilla::RNG (); use Cwd qw(realpath); use MojoX::Log::Log4perl::Tiny; diff --git a/Bugzilla/Quantum/Plugin/Glue.pm b/Bugzilla/Quantum/Plugin/Glue.pm index 07ac10c49..ef4a291f8 100644 --- a/Bugzilla/Quantum/Plugin/Glue.pm +++ b/Bugzilla/Quantum/Plugin/Glue.pm @@ -12,6 +12,7 @@ use Try::Tiny; use Bugzilla::Constants; use Bugzilla::Quantum::Template; use Bugzilla::Logging; +use Bugzilla::RNG (); use JSON::MaybeXS qw(decode_json); sub register { @@ -39,7 +40,9 @@ sub register { Mojo::IOLoop->next_tick( sub { - + Bugzilla::RNG::srand(); + srand(); + eval { Bugzilla->dbh->ping }; } ); |