Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

[1.2.X] Fixed #14398 -- Changed runfcgi command to interpret the umas…

…k option argument as an octal value.

Thanks petteyg for report and aptiko for help with the fix.

Backport of [14360] from trunk

git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14362 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 99fbf0a46da331fbf6799756efa7460536fdff93 1 parent cbc110a
@ramiro ramiro authored
Showing with 8 additions and 8 deletions.
  1. +8 −8 django/core/servers/fastcgi.py
View
16 django/core/servers/fastcgi.py
@@ -27,22 +27,22 @@
Optional Fcgi settings: (setting=value)
protocol=PROTOCOL fcgi, scgi, ajp, ... (default fcgi)
- host=HOSTNAME hostname to listen on..
+ host=HOSTNAME hostname to listen on.
port=PORTNUM port to listen on.
socket=FILE UNIX socket to listen on.
- method=IMPL prefork or threaded (default prefork)
- maxrequests=NUMBER number of requests a child handles before it is
+ method=IMPL prefork or threaded (default prefork).
+ maxrequests=NUMBER number of requests a child handles before it is
killed and a new child is forked (0 = no limit).
- maxspare=NUMBER max number of spare processes / threads
+ maxspare=NUMBER max number of spare processes / threads.
minspare=NUMBER min number of spare processes / threads.
- maxchildren=NUMBER hard limit number of processes / threads
+ maxchildren=NUMBER hard limit number of processes / threads.
daemonize=BOOL whether to detach from terminal.
pidfile=FILE write the spawned process-id to this file.
workdir=DIRECTORY change to this directory when daemonizing.
- debug=BOOL set to true to enable flup tracebacks
+ debug=BOOL set to true to enable flup tracebacks.
outlog=FILE write stdout to this file.
errlog=FILE write stderr to this file.
- umask=UMASK umask to use when daemonizing (default 022).
+ umask=UMASK umask to use when daemonizing, in octal notation (default 022).
Examples:
Run a "standard" fastcgi process on a file-descriptor
@@ -166,7 +166,7 @@ def runfastcgi(argset=[], **kwargs):
if options['errlog']:
daemon_kwargs['err_log'] = options['errlog']
if options['umask']:
- daemon_kwargs['umask'] = int(options['umask'])
+ daemon_kwargs['umask'] = int(options['umask'], 8)
if daemonize:
from django.utils.daemonize import become_daemon
Please sign in to comment.
Something went wrong with that request. Please try again.