ports/125628: [patch] www/mod_wsgi: add support for display-name
Douglas Thrift
douglas at douglasthrift.net
Tue Jul 15 21:10:06 UTC 2008
The following reply was made to PR ports/125628; it has been noted by GNATS.
From: "Douglas Thrift" <douglas at douglasthrift.net>
To: <bug-followup at FreeBSD.ORG>
Cc: <bug-followup at FreeBSD.ORG>
Subject: Re: ports/125628: [patch] www/mod_wsgi: add support for display-name
Date: Tue, 15 Jul 2008 13:35:49 -0700
This is a multi-part message in MIME format.
------=_NextPart_000_034D_01C8E67F.B1E63BB0
Content-Type: text/plain;
format=flowed;
charset="utf-8";
reply-type=original
Content-Transfer-Encoding: 7bit
Hello,
I've cleaned up the fix and put it into a patch that can be used to patch
the port.
_______________________________________________________________________
Douglas William Thrift
<douglas at douglasthrift.net>
<http://www.douglasthrift.net/>
----- Original Message -----
From: "Edwin Groothuis" <edwin at FreeBSD.ORG>
To: <douglas at douglasthrift.net>
Cc: <bug-followup at FreeBSD.ORG>
Sent: Tuesday, July 15, 2008 2:30 AM
Subject: Re: ports/125628: [patch] www/mod_wsgi: add support for
display-name
> Maintainer of www/mod_wsgi,
>
> Please note that PR ports/125628 has just been submitted.
>
> If it contains a patch for an upgrade, an enhancement or a bug fix
> you agree on, reply to this email stating that you approve the patch
> and a committer will take care of it.
>
> The full text of the PR can be found at:
> http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/125628
>
> --
> Edwin Groothuis via the GNATS Auto Assign Tool
> edwin at FreeBSD.org
>
>
------=_NextPart_000_034D_01C8E67F.B1E63BB0
Content-Type: application/octet-stream;
name="mod_wsgi.patch"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment;
filename="mod_wsgi.patch"
diff -Nrux .svn -x work /usr/ports/www/mod_wsgi/files/patch-mod_wsgi.c =
mod_wsgi/files/patch-mod_wsgi.c=0A=
--- /usr/ports/www/mod_wsgi/files/patch-mod_wsgi.c Wed Dec 31 16:00:00 =
1969=0A=
+++ mod_wsgi/files/patch-mod_wsgi.c Tue Jul 15 13:12:53 2008=0A=
@@ -0,0 +1,33 @@=0A=
+--- mod_wsgi.c.orig Tue Jul 15 13:01:00 2008=0A=
++++ mod_wsgi.c Tue Jul 15 13:07:19 2008=0A=
+@@ -7749,10 +7749,12 @@=0A=
+ {=0A=
+ const char *display_name =3D NULL;=0A=
+ =0A=
++#ifndef __FreeBSD__=0A=
+ int slen =3D 0;=0A=
+ int dlen =3D 0;=0A=
+ =0A=
+ char *argv0 =3D NULL;=0A=
++#endif=0A=
+ =0A=
+ display_name =3D daemon->group->display_name;=0A=
+ =0A=
+@@ -7771,6 +7773,9 @@=0A=
+ * is restricted, need to truncate display name if too long.=0A=
+ */=0A=
+ =0A=
++#ifdef __FreeBSD__=0A=
++ setproctitle("%s", display_name);=0A=
++#else=0A=
+ argv0 =3D (char*)wsgi_server->process->argv[0];=0A=
+ =0A=
+ dlen =3D strlen(argv0);=0A=
+@@ -7782,6 +7787,7 @@=0A=
+ memcpy(argv0, display_name, slen);=0A=
+ else=0A=
+ memcpy(argv0, display_name, dlen);=0A=
++#endif=0A=
+ }=0A=
+ =0A=
+ static void wsgi_setup_access(WSGIDaemonProcess *daemon)=0A=
------=_NextPart_000_034D_01C8E67F.B1E63BB0--
More information about the freebsd-ports-bugs
mailing list