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:
parent
c117b3c2f4
commit
a8c31a5d50
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=217131
20
www/mod_wsgi/files/patch-mod_wsgi.c
Normal file
20
www/mod_wsgi/files/patch-mod_wsgi.c
Normal 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)
|
20
www/mod_wsgi3/files/patch-mod_wsgi.c
Normal file
20
www/mod_wsgi3/files/patch-mod_wsgi.c
Normal 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)
|
Loading…
Reference in New Issue
Block a user