Commit baf63f6e authored by Aymeric Augustin's avatar Aymeric Augustin
Browse files

Fixed #10725 -- When the child process spawned by the autoreloader gets killed...

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
parent fa226cd7
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -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