aboutsummaryrefslogtreecommitdiffstats
path: root/www/mod_wsgi
diff options
context:
space:
mode:
authormiwi <miwi@FreeBSD.org>2008-07-20 01:50:05 +0800
committermiwi <miwi@FreeBSD.org>2008-07-20 01:50:05 +0800
commitfc6297769fb01f2fdb5ea8197e88cd90a4f2af84 (patch)
tree1bfa20ea07f91fd1001f77eb3df57a5b1d9cd3ea /www/mod_wsgi
parentb8b1e120aa68ec55c093fdeb1c570ed18fa6b02e (diff)
downloadfreebsd-ports-gnome-fc6297769fb01f2fdb5ea8197e88cd90a4f2af84.tar.gz
freebsd-ports-gnome-fc6297769fb01f2fdb5ea8197e88cd90a4f2af84.tar.zst
freebsd-ports-gnome-fc6297769fb01f2fdb5ea8197e88cd90a4f2af84.zip
- Add support for display-name
PR: 125628 Submitted by: Emil Mikulic <emikulic@gmail.com> Approved by: maintainer
Diffstat (limited to 'www/mod_wsgi')
-rw-r--r--www/mod_wsgi/files/patch-mod_wsgi.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/www/mod_wsgi/files/patch-mod_wsgi.c b/www/mod_wsgi/files/patch-mod_wsgi.c
new file mode 100644
index 000000000000..c0de48092bdf
--- /dev/null
+++ b/www/mod_wsgi/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)