Bug 1040728 - testserver.pl on Ubuntu 12.04 with Apache2 invalidly gives error…

Bug 1040728 - testserver.pl on Ubuntu 12.04 with Apache2 invalidly gives error 'Failed to find the GID for the 'httpd' process' due to truncated command name r=gerv,a=sgreen
parent e0fbbde6
...@@ -42,7 +42,7 @@ if (!ON_WINDOWS) { ...@@ -42,7 +42,7 @@ if (!ON_WINDOWS) {
foreach my $pscmd (@pscmds) { foreach my $pscmd (@pscmds) {
open PH, "$pscmd 2>/dev/null |"; open PH, "$pscmd 2>/dev/null |";
while (my $line = <PH>) { while (my $line = <PH>) {
if ($line =~ /^(?:\S*\/)?(?:httpd|apache)2?\s+(\d+)$/) { if ($line =~ /^(?:\S*\/)?(?:httpd|apache?)2?\s+(\d+)$/) {
$sgid = $1 if $1 > $sgid; $sgid = $1 if $1 > $sgid;
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment