mingw: Don't ask the user yes/no questions if they can't see the question.
commit62cab47a8a7059aae506c63334d195d4040c690f
authorbert Dvornik <dvornik+git@gmail.com>
Mon, 26 Apr 2010 01:22:31 +0000 (25 21:22 -0400)
committerJohannes Schindelin <johannes.schindelin@gmx.de>
Fri, 11 Jun 2010 14:21:29 +0000 (11 16:21 +0200)
tree722cff4cd1ee537ac614a0579ea452f9c4d63310
parent7c3b92c73788ca5d490189786f858ab3a846853b
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