Ticket #14958: fastcgi.py.diff

File fastcgi.py.diff, 947 bytes (added by joerg, 13 years ago)

socket_umask option

  • django/core/servers/fastcgi.py

    old new  
    4242  debug=BOOL           set to true to enable flup tracebacks
    4343  outlog=FILE          write stdout to this file.
    4444  errlog=FILE          write stderr to this file.
     45  socket_umask=UMASK   umask to use for creation of Unix Domain Socket.
    4546  umask=UMASK          umask to use when daemonizing (default 022).
    4647
    4748Examples:
     
    7778    'debug': None,
    7879    'outlog': None,
    7980    'errlog': None,
     81    'socket_umask': None,
    8082    'umask': None,
    8183}
    8284
     
    129131        return fastcgi_help("ERROR: Implementation must be one of prefork or thread.")
    130132
    131133    wsgi_opts['debug'] = options['debug'] is not None
     134    if options['socket_umask']: wsgi_opts['umask'] = int(options['socket_umask'])
    132135
    133136    try:
    134137        module = importlib.import_module('.%s' % flup_module, 'flup')
Back to Top