I'm running a site by apache2.x with mod_wsgi 2.5, and python2.5. It is configured to run in multi-processes and each process only contains one thread.
When I read this post, I try to set the process name to PATH_INFO, but it doesn't work. My code is like:
import ctypes
libc = ctypes.CDLL('/lib/libc.so.6')
def application (environ, start_response):
libc.prctl(15, environ.get('PATH_INFO', 'WSGI'), 0, 0, 0);
# other codes