Ticket #10725: autoreload-signal.diff

File autoreload-signal.diff, 537 bytes (added by Glenn Maynard, 16 years ago)

print signals

  • django/utils/autoreload.py

     
    8181        new_environ = os.environ.copy()
    8282        new_environ["RUN_MAIN"] = 'true'
    8383        exit_code = os.spawnve(os.P_WAIT, sys.executable, args, new_environ)
     84        if exit_code < 0:
     85            print "Python interpreter exited with signal %i" % -exit_code
    8486        if exit_code != 3:
    8587            return exit_code
    8688
Back to Top