Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed #4304 -- Modified sys.exit to os._exit to make sure development…

… server quits when an error occurs attempting to bind to the requested port (e.g., if another server is already running). Thanks, Mario Gonzalez <gonzalemario@gmail.com>.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@5738 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 7cc2bf2f030940f0acd7b6ad0c56f2d60122fb34 1 parent 910bbe8
Russell Keith-Magee freakboy3742 authored
Showing with 3 additions and 2 deletions.
  1. +1 −1  AUTHORS
  2. +2 −1  django/core/management.py
2  AUTHORS
View
@@ -117,7 +117,7 @@ answer newbie questions, and generally made Django that much better:
glin@seznam.cz
martin.glueck@gmail.com
GomoX <gomo@datafull.com>
- Mario Gonzalez <gonzalemario @t gmail.com>
+ Mario Gonzalez <gonzalemario@gmail.com>
Simon Greenhill <dev@simon.net.nz>
Owen Griffiths
Espen Grindhaug <http://grindhaug.org/>
3  django/core/management.py
View
@@ -1236,7 +1236,8 @@ def inner_run():
except (AttributeError, KeyError):
error_text = str(e)
sys.stderr.write(style.ERROR("Error: %s" % error_text) + '\n')
- sys.exit(1)
+ # Need to use an OS exit because sys.exit doesn't work in a thread
+ os._exit(1)
except KeyboardInterrupt:
sys.exit(0)
if use_reloader:
Please sign in to comment.
Something went wrong with that request. Please try again.