mingw: Don't ask the user yes/no questions if they can't see the question.
commit98f7a53008aace9862ff64b74d79fe99037caed6
authorbert Dvornik <dvornik+git@gmail.com>
Mon, 26 Apr 2010 01:22:31 +0000 (25 21:22 -0400)
committerPat Thoyts <patthoyts@users.sourceforge.net>
Fri, 10 Sep 2010 22:44:09 +0000 (10 23:44 +0100)
tree39df235c16f3056541cdececfd6a214e74ecc253
parent1a300b8cae3aa28c52d1ae315dc1c18c596056b3
mingw: Don't ask the user yes/no questions if they can't see the question.

If the stdout of the command is connected to a terminal but the stderr
has been redirected, the odds are good that the user can't see any
question we print out to stderr.  This will result in a "mysterious
hang" while the app is waiting for user input.

It seems better to be conservative, and avoid asking for input
whenever the stderr is not a terminal, just like we do for stdin.

Signed-off-by: bert Dvornik <dvornik+git@gmail.com>
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
compat/mingw.c