mingw: Don't ask the user yes/no questions if they can't see the question.
commitbc1e462b7e9f8fcc030ebe72cfb108680546169e
authorbert Dvornik <dvornik+git@gmail.com>
Mon, 26 Apr 2010 01:22:31 +0000 (25 21:22 -0400)
committerPat Thoyts <patthoyts@users.sourceforge.net>
Sun, 24 Oct 2010 23:04:23 +0000 (25 00:04 +0100)
tree286f0fdac2eec8f4e5ad1f32ed014579d3539dac
parentbbfeebce11aca705c98b6315f91c058fd962db8c
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