#30416: Runserver's reloading mechanism should restore terminal state completely
-------------------------------------+-------------------------------------
Reporter: Daniel Hahler | Owner: nobody
Type: Bug | Status: new
Component: Core (Management | Version: 2.2
commands) |
Severity: Normal | Resolution:
Keywords: | Triage Stage:
| Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Description changed by Daniel Hahler:
Old description:
> 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
New description:
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.
--
--
Ticket URL: <https://code.djangoproject.com/ticket/30416#comment:1>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/065.4561a077b498bfb289b491aeede21241%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.