mingw: Don't ask the user yes/no questions if they can't see the question.
commit3a67f1bd4587a67686fc0d59540669df55fe2e20
authorbert Dvornik <dvornik+git@gmail.com>
Mon, 26 Apr 2010 01:22:31 +0000 (25 21:22 -0400)
committerJohannes Schindelin <johannes.schindelin@gmx.de>
Sat, 8 Jan 2011 14:15:26 +0000 (8 15:15 +0100)
tree259aca6af08656843d39604bdf714525ba59951d
parent5a8503553c93d468cc3f72096d0cb5faf5581d16
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