scripts/crosstool-NG.sh.in
changeset 3083 3a7b2eee9dcd
parent 3082 39ec9e913d79
child 3111 a9130ff13b19
child 3129 b8e00eab8f81
     1.1 --- a/scripts/crosstool-NG.sh.in	Sun Oct 14 23:46:15 2012 +0000
     1.2 +++ b/scripts/crosstool-NG.sh.in	Sat Oct 06 23:48:07 2012 +0200
     1.3 @@ -25,6 +25,14 @@
     1.4  . .config.2
     1.5  # Yes! We can do full logging from now on!
     1.6  
     1.7 +# If we want an interactive debug-shell, we must ensure these FDs
     1.8 +# are indeed connected to a terminal (and not redirected in any way).
     1.9 +if [ "${CT_DEBUG_INTERACTIVE}" = "y" -a ! \( -t 0 -a -t 6 -a -t 2 \) ]; then
    1.10 +    CT_DoLog ERROR "Can't spawn interactive debug-shell,"
    1.11 +    CT_DoLog ERROR "because stdout/stderr has been redirected."
    1.12 +    exit 1
    1.13 +fi
    1.14 +
    1.15  # Override the locale early, in case we ever translate crosstool-NG messages
    1.16  if [ -z "${CT_NO_OVERIDE_LC_MESSAGES}" ]; then
    1.17      export LC_ALL=C