1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-28 01:06:17 +00:00

- Add support for display-name

PR:		125628
Submitted by:	Emil Mikulic <emikulic@gmail.com>
Approved by:	maintainer
This commit is contained in:
Martin Wilke 2008-07-19 17:50:05 +00:00
parent c117b3c2f4
commit a8c31a5d50
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=217131
2 changed files with 40 additions and 0 deletions

View File

@ -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)

View File

@ -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)