ansible/ansible — pull request #1669 by dagwieers (2012-11-23 21:33:47+00:00)
Title: Use proper pseudo-tty's instead of pipes when using subprocess

This change avoids the "tcgetattr: Invalid argument" error by making sure the ssh we start does have a proper pseudo-tty.

We could also check whether our current terminal is a proper terminal (by doing a tcgetattr ourselves) but I don't think this adds anything.

This closes #1662

As requested this will only use pty when it is available.