ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/pack/freebsd/www/mod_wsgi/files/patch-mod_wsgi.c
Revision: 28
Committed: 2008-07-15T13:31:46-07:00 (16 years, 11 months ago) by douglas
Content type: text/x-c
File size: 735 byte(s)
Log Message:
Clean up fix from http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/125628.

File Contents

# User Rev Content
1 douglas 28 --- mod_wsgi.c.orig Tue Jul 15 13:01:00 2008
2     +++ mod_wsgi.c Tue Jul 15 13:07:19 2008
3     @@ -7749,10 +7749,12 @@
4     {
5     const char *display_name = NULL;
6    
7     +#ifndef __FreeBSD__
8     int slen = 0;
9     int dlen = 0;
10    
11     char *argv0 = NULL;
12     +#endif
13    
14     display_name = daemon->group->display_name;
15    
16     @@ -7771,6 +7773,9 @@
17     * is restricted, need to truncate display name if too long.
18     */
19    
20     +#ifdef __FreeBSD__
21     + setproctitle("%s", display_name);
22     +#else
23     argv0 = (char*)wsgi_server->process->argv[0];
24    
25     dlen = strlen(argv0);
26     @@ -7782,6 +7787,7 @@
27     memcpy(argv0, display_name, slen);
28     else
29     memcpy(argv0, display_name, dlen);
30     +#endif
31     }
32    
33     static void wsgi_setup_access(WSGIDaemonProcess *daemon)