forked from pool/apache2-mod_perl
- update to 2.0.12: * Add bug tracker information to README, and add CONTRIBUTING.md. * Fix detection of APR's threading support on RHEL 8. * Fix build for perl >= 5.33.7. * Fix SIGSEGV crash due to wrong use of perl_parse(). * Improve installation instructions for AIX. - remove patch: * fix_perl_5.34_build.patch (there is a fix already upstreamed) - refreshed patches: * avoid-broken-provides.diff * apache2-mod_perl-prctl-short-name.patch OBS-URL: https://build.opensuse.org/request/show/971875 OBS-URL: https://build.opensuse.org/package/show/Apache:Modules/apache2-mod_perl?expand=0&rev=78
21 lines
688 B
Diff
21 lines
688 B
Diff
Index: mod_perl-2.0.12/src/modules/perl/mod_perl.c
|
|
===================================================================
|
|
--- mod_perl-2.0.12.orig/src/modules/perl/mod_perl.c
|
|
+++ mod_perl-2.0.12/src/modules/perl/mod_perl.c
|
|
@@ -15,6 +15,7 @@
|
|
*/
|
|
|
|
#include "mod_perl.h"
|
|
+#include <sys/prctl.h>
|
|
|
|
/* make sure that mod_perl won't try to start itself, while it's
|
|
* already starting. If the flag's value is 1 * it's still starting,
|
|
@@ -281,6 +282,7 @@ PerlInterpreter *modperl_startup(server_
|
|
*/
|
|
PL_origalen = strlen(argv[0]) + 1;
|
|
sv_setpv_mg(get_sv("0",0), argv[0]);
|
|
+ prctl(PR_SET_NAME, (unsigned long)apr_filepath_name_get(argv[0]), 0, 0, 0);
|
|
|
|
perl_run(perl);
|
|
|