Fixed FC4 deadlock invocated by: /etc/profile.d/lang.sh
authorshort <>
Tue, 28 Jun 2005 17:54:24 +0000 (17:54 +0000)
committershort <>
Tue, 28 Jun 2005 17:54:24 +0000 (17:54 +0000)
.bashrc

diff --git a/.bashrc b/.bashrc
index df1e3b1..b4bce39 100644 (file)
--- a/.bashrc
+++ b/.bashrc
@@ -11,7 +11,12 @@ if [ -n "$_home_short_dotbashrc_norc" -o "${TERM#norc-}" != "$TERM" ];then
 fi
 
 if [ -z "$_home_short_dotbashrc" ];then
-       _home_short_dotbashrc=true
+       # We permit later reinitialization by unsetting it.
+       # During our execution we forbid spawning to prevent deadlock by:
+       #       source /etc/bashrc
+       #       . /etc/profile.d/lang.sh
+       #       unicode_start iso02.08
+       export _home_short_dotbashrc=true
        # $TERM gets restored to its 'norc-' state after ~/.bashrc
        # alias norc='TERM="norc-$TERM" ssh -t -o 'NoHostAuthenticationForLocalhost yes' $USER@localhost "cd $PWD; TERM=$TERM;"'
        function norc { TERM="norc-$TERM" ssh -t -o 'NoHostAuthenticationForLocalhost yes' $USER@localhost "cd $PWD; TERM=$TERM;" "$@"; }; export -f norc