Ticket #10725: autoreload-signal.diff
File autoreload-signal.diff, 537 bytes (added by , 16 years ago) |
---|
-
django/utils/autoreload.py
81 81 new_environ = os.environ.copy() 82 82 new_environ["RUN_MAIN"] = 'true' 83 83 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 84 86 if exit_code != 3: 85 87 return exit_code 86 88