Current versions of mod_perl2 include the following line in
187 /* make sure httpd's argv is the first argument so $0 is
188 * correctly connected to the real thing */
Without mod_perl2, a running Apache process has a name "apache2" in
/proc/$$/status (this is on a Debian machine, so on other distributions
that name might differ).
With mod_perl2 loaded, the name is "/usr/sbin/apach" - note the
additional path information that causes the name to be truncated.
This causes us (Tiger Computing) some difficulties in our monitoring of
Apache with mod_perl loaded, and users elsewhere have reported similar
A bug was reported to Fedora in March 2012, and a patch applied,
but it's not clear whether this was ever reported upstream. The patch
uses s->process->short_name instead.
Please could you comment on
a) the problem, and whether it's a genuine bug
b) the patch that Fedora applied