Fixed #10725 -- When the child process spawned by the autoreloader gets killed by a signal, passed the signal to the parent, in order to make debugging easier.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17296 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
fa226cd740
commit
baf63f6e57
|
@ -115,7 +115,11 @@ def python_reloader(main_func, args, kwargs):
|
|||
pass
|
||||
else:
|
||||
try:
|
||||
sys.exit(restart_with_reloader())
|
||||
exit_code = restart_with_reloader()
|
||||
if exit_code < 0:
|
||||
os.kill(os.getpid(), -exit_code)
|
||||
else:
|
||||
sys.exit(exit_code)
|
||||
except KeyboardInterrupt:
|
||||
pass
|
||||
|
||||
|
|
Loading…
Reference in New Issue