summaryrefslogtreecommitdiff
path: root/django/utils
diff options
context:
space:
mode:
authorJacob Kaplan-Moss <jacob@jacobian.org>2008-03-18 15:53:46 +0000
committerJacob Kaplan-Moss <jacob@jacobian.org>2008-03-18 15:53:46 +0000
commita752a3d41973dfae6c03d927f030e5975e836e6b (patch)
treedfd66f48fee6687c0ac744f660db40ea46322970 /django/utils
parentf0dec08c3a40434310cfbe0748eb9587c7279500 (diff)
Fixed #6687: added outlog/errlog options to runfcgi. Thanks, tamas.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@7297 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'django/utils')
-rw-r--r--django/utils/daemonize.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/django/utils/daemonize.py b/django/utils/daemonize.py
index 437c288292..f0c2f684bd 100644
--- a/django/utils/daemonize.py
+++ b/django/utils/daemonize.py
@@ -29,6 +29,8 @@ if os.name == 'posix':
os.dup2(si.fileno(), sys.stdin.fileno())
os.dup2(so.fileno(), sys.stdout.fileno())
os.dup2(se.fileno(), sys.stderr.fileno())
+ # Set custom file descriptors so that they get proper buffering.
+ sys.stdout, sys.stderr = so, se
else:
def become_daemon(our_home_dir='.', out_log=None, err_log=None):
"""