aboutsummaryrefslogtreecommitdiff
path: root/www/mod_wsgi3
diff options
context:
space:
mode:
authorMartin Wilke <miwi@FreeBSD.org>2008-07-19 17:50:05 +0000
committerMartin Wilke <miwi@FreeBSD.org>2008-07-19 17:50:05 +0000
commita8c31a5d50a9322cdb62c0e24337d7e5cd2585ca (patch)
tree6ae863a1b7719d26f4ea0de764d97c27b4c5ac32 /www/mod_wsgi3
parentc117b3c2f4e8c53e4ff16649ac5ab3aba0e23347 (diff)
downloadports-a8c31a5d50a9322cdb62c0e24337d7e5cd2585ca.tar.gz
ports-a8c31a5d50a9322cdb62c0e24337d7e5cd2585ca.zip
Notes
Diffstat (limited to 'www/mod_wsgi3')
-rw-r--r--www/mod_wsgi3/files/patch-mod_wsgi.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/www/mod_wsgi3/files/patch-mod_wsgi.c b/www/mod_wsgi3/files/patch-mod_wsgi.c
new file mode 100644
index 000000000000..c0de48092bdf
--- /dev/null
+++ b/www/mod_wsgi3/files/patch-mod_wsgi.c
@@ -0,0 +1,20 @@
+--- mod_wsgi.c.orig 2008-06-18 16:35:40.000000000 +0200
++++ mod_wsgi.c 2008-07-19 19:41:18.000000000 +0200
+@@ -7771,6 +7771,9 @@
+ * is restricted, need to truncate display name if too long.
+ */
+
++#ifdef __FreeBSD__
++ setproctitle(display_name);
++#else
+ argv0 = (char*)wsgi_server->process->argv[0];
+
+ dlen = strlen(argv0);
+@@ -7782,6 +7785,7 @@
+ memcpy(argv0, display_name, slen);
+ else
+ memcpy(argv0, display_name, dlen);
++#endif
+ }
+
+ static void wsgi_setup_access(WSGIDaemonProcess *daemon)