Django

Code

Changeset 5738

Show
Ignore:
Timestamp:
07/20/07 22:30:38 (1 year ago)
Author:
russellm
Message:

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>.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/trunk/AUTHORS

    r5723 r5738  
    118118    martin.glueck@gmail.com 
    119119    GomoX <gomo@datafull.com> 
    120     Mario Gonzalez <gonzalemario @t gmail.com> 
     120    Mario Gonzalez <gonzalemario@gmail.com> 
    121121    Simon Greenhill <dev@simon.net.nz> 
    122122    Owen Griffiths 
  • django/trunk/django/core/management.py

    r5726 r5738  
    12371237                error_text = str(e) 
    12381238            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) 
    12401241        except KeyboardInterrupt: 
    12411242            sys.exit(0)