diff options
| author | Adam Allred <aallred@rsglab.com> | 2018-10-17 19:47:20 -0400 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2018-10-19 20:45:55 -0400 |
| commit | 0d5d8ed32213a84189c2bf436c88806b77b6785b (patch) | |
| tree | 07e1931adef3972c7503a0ea63a7569830d45f97 /docs/_theme | |
| parent | 4acdba42a632ef78959f67f57fab10899fefb8e6 (diff) | |
[2.1.x] Fixed #29774 -- Fixed django-admin shell hang on startup.
sys.stdin.read() blocks waiting for EOF in shell.py which will
likely never come if the user provides input on stdin via the
keyboard before the shell starts. Added check for a tty to
skip reading stdin if it's not present.
This still allows piping of code into the shell (which should
have no TTY and should have an EOF) but also doesn't cause it
to hang if multi-line input is provided.
Backport of 4e78e389b16fbceb23d5236ee1650b213e71c968 from master.
Diffstat (limited to 'docs/_theme')
0 files changed, 0 insertions, 0 deletions
