diff options
author | Dylan William Hardison <dylan@hardison.net> | 2018-05-22 04:18:27 +0200 |
---|---|---|
committer | Dylan William Hardison <dylan@hardison.net> | 2018-06-28 22:41:58 +0200 |
commit | 2474b97150add16474f3071faeffc8faa4bff953 (patch) | |
tree | a7b90e6fdc5fc9832672c9793a62085f9526861e /Bugzilla/DaemonControl.pm | |
parent | 94f0bad3fb3158c99668550fb0640fcd89b4bf18 (diff) | |
download | bugzilla-2474b97150add16474f3071faeffc8faa4bff953.tar.gz bugzilla-2474b97150add16474f3071faeffc8faa4bff953.tar.xz |
support HTTPD_IN_SUBDIR for tests
Diffstat (limited to 'Bugzilla/DaemonControl.pm')
-rw-r--r-- | Bugzilla/DaemonControl.pm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Bugzilla/DaemonControl.pm b/Bugzilla/DaemonControl.pm index 43461b5ec..aae06f9f7 100644 --- a/Bugzilla/DaemonControl.pm +++ b/Bugzilla/DaemonControl.pm @@ -23,6 +23,7 @@ use IO::Async::Protocol::LineStream; use IO::Async::Signal; use IO::Socket; use LWP::Simple qw(get); +use JSON::MaybeXS qw(encode_json); use POSIX qw(setsid WEXITSTATUS); use base qw(Exporter); @@ -103,7 +104,7 @@ sub run_httpd { # we have to setsid() to make a new process group # or else apache will kill its parent. setsid(); - warn "ignoring args: @args"; + $ENV{BUGZILLA_HTTPD_ARGS} = encode_json(\@args); my @command = ( $^X, '/app/scripts/bugzilla_quantum', 'daemon', "--listen=http://*:$ENV{PORT}" ); exec @command or die "failed to exec $command[0] $!"; |