Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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 authored July 21, 2007
2  AUTHORS
@@ -117,7 +117,7 @@ answer newbie questions, and generally made Django that much better:
117 117
     glin@seznam.cz
118 118
     martin.glueck@gmail.com
119 119
     GomoX <gomo@datafull.com>
120  
-    Mario Gonzalez <gonzalemario @t gmail.com>
  120
+    Mario Gonzalez <gonzalemario@gmail.com>
121 121
     Simon Greenhill <dev@simon.net.nz>
122 122
     Owen Griffiths
123 123
     Espen Grindhaug <http://grindhaug.org/>
3  django/core/management.py
@@ -1236,7 +1236,8 @@ def inner_run():
1236 1236
             except (AttributeError, KeyError):
1237 1237
                 error_text = str(e)
1238 1238
             sys.stderr.write(style.ERROR("Error: %s" % error_text) + '\n')
1239  
-            sys.exit(1)
  1239
+            # Need to use an OS exit because sys.exit doesn't work in a thread
  1240
+            os._exit(1)
1240 1241
         except KeyboardInterrupt:
1241 1242
             sys.exit(0)
1242 1243
     if use_reloader:

0 notes on commit 7cc2bf2

Please sign in to comment.
Something went wrong with that request. Please try again.