﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
30416	Runserver's reloading mechanism should restore terminal state completely	Daniel Hahler	Daniel Hahler	"Currently it only ensures that echo is on, but not that e.g. Ctrl-C works etc.

This can be triggered when using pdb++, which uses pyrepl itself: it puts the terminal into raw state.

If the reloader then kicks in while at the prompt this will not be restored (except for echo).

Related issue, which mentions that a better mechanism would be good: https://code.djangoproject.com/ticket/15880


btw: pyrepl has no chance to restore itself: listening to SIGTERM is not possible in threads apparently, and e.g. `atexit` is also not triggered there."	Bug	assigned	Core (Management commands)	2.2	Normal			Tom Forbes	Accepted	1	0	1	0	0	0
