Author: russellm
Date: 2007-07-20 22:30:38 -0500 (Fri, 20 Jul 2007)
New Revision: 5738

Modified:
   django/trunk/AUTHORS
   django/trunk/django/core/management.py
Log:
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 <[EMAIL PROTECTED]>.


Modified: django/trunk/AUTHORS
===================================================================
--- django/trunk/AUTHORS        2007-07-20 21:42:47 UTC (rev 5737)
+++ django/trunk/AUTHORS        2007-07-21 03:30:38 UTC (rev 5738)
@@ -117,7 +117,7 @@
     [EMAIL PROTECTED]
     [EMAIL PROTECTED]
     GomoX <[EMAIL PROTECTED]>
-    Mario Gonzalez <gonzalemario @t gmail.com>
+    Mario Gonzalez <[EMAIL PROTECTED]>
     Simon Greenhill <[EMAIL PROTECTED]>
     Owen Griffiths
     Espen Grindhaug <http://grindhaug.org/>

Modified: django/trunk/django/core/management.py
===================================================================
--- django/trunk/django/core/management.py      2007-07-20 21:42:47 UTC (rev 
5737)
+++ django/trunk/django/core/management.py      2007-07-21 03:30:38 UTC (rev 
5738)
@@ -1236,7 +1236,8 @@
             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:


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to