This is a fix for https://code.djangoproject.com/ticket/19137. It
works by setting signal handlers on SIGINT and SIGTERM, which will
send SIGINT to the autoreloaded child, if one has been started, and
then will exit themselves.
Signal autoreloaded child when parent is exiting on a signal.
Based on discussion in the ticket, it looks like this doesn't work on Windows.