Bug #114
Ctrl-D causes hanging
| Status: | Assigned | Start: | 11/19/2009 | |
| Priority: | Normal | Due date: | ||
| Assigned to: | % Done: | 0% |
||
| Category: | UI | |||
| Target version: | 1.1 | |||
Description
From tvon, while troubleshooting a semi-related issue:
[~/Development/cahoots]
tvon@bender> fab test2
[spitball@spitballlocal.com] Executing task 'test2'
[spitball@spitballlocal.com] run: ls
Password for spitball@spitballlocal.com: Exception in thread [spitball@spitballlocal.com] err:
Traceback (most recent call last):
File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/threading.py", line 522, in __bootstrap_inner
self.run()
File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/threading.py", line 477, in run
self.__target(*self.__args, **self.__kwargs)
File "build/bdist.macosx-10.6-universal/egg/fabric/network.py", line 327, in outputter
env.password = password = prompt_for_password(password)
File "build/bdist.macosx-10.6-universal/egg/fabric/network.py", line 274, in prompt_for_password
new_password = getpass.getpass(password_prompt)
File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/getpass.py", line 68, in unix_getpass
passwd = _raw_input(prompt, stream, input=input)
File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/getpass.py", line 130, in _raw_input
raise EOFError
EOFError
History
Updated by Jeff Forcier 293 days ago
Looks like ^D does cause an EOFErrors inside raw_input or things which use it, but not otherwise. Will have to think about whether it makes sense to have an inner try/except looking for this so people can Ctrl-D out of password and sudo prompts.
Also available in: Atom