diff options
author | Graham Dumpleton <Graham.Dumpleton@gmail.com> | 2022-04-19 13:10:13 +1000 |
---|---|---|
committer | Graham Dumpleton <Graham.Dumpleton@gmail.com> | 2022-04-19 13:10:13 +1000 |
commit | 921bcfa12b9a6c424c6d25e9c6cb4471fbdb2238 (patch) | |
tree | 8241bd7cc9542a55a3e7079228e5fc9e5a0d968c | |
parent | 588475421ce1daa76246b788643afc4e83100ae3 (diff) | |
download | mod_wsgi-921bcfa12b9a6c424c6d25e9c6cb4471fbdb2238.tar.gz |
Don't use sub process if debug mode.
-rw-r--r-- | src/server/management/commands/runmodwsgi.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/management/commands/runmodwsgi.py b/src/server/management/commands/runmodwsgi.py index f6d1392..b010dd2 100644 --- a/src/server/management/commands/runmodwsgi.py +++ b/src/server/management/commands/runmodwsgi.py @@ -140,7 +140,7 @@ class Command(BaseCommand): executable = os.path.join(options['server_root'], 'apachectl') name = executable.ljust(len(options['process_name'])) - if sys.stdout.isatty(): + if sys.stdout.isatty() and not options['debug_mode']: process = None def handler(signum, frame): |