mingw: Don't ask the user yes/no questions if they can't see the question.
commit230ed6a684c4415d650ef5127fa5d85dd73416f1
authorbert Dvornik <dvornik+git@gmail.com>
Mon, 26 Apr 2010 01:22:31 +0000 (25 21:22 -0400)
committerlmfadmin <lmfadmin@ubuntu.ubuntu-domain>
Fri, 3 Sep 2010 12:28:42 +0000 (3 13:28 +0100)
treee1b1f8d882f6c5859363a7b575e0b9f61d5435db
parent1ff44ac1dd94fffc6eaebe17e92f07d7abd35ba7
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