From fe44b9fb5a043cfe04cc82d0f3971075db96c930 Mon Sep 17 00:00:00 2001
From: Gerardo Ganis <Gerardo.Ganis@cern.ch>
Date: Thu, 15 Dec 2011 10:41:34 +0000
Subject: [PATCH] Fix a typo in the name of a rootrc variable

git-svn-id: http://root.cern.ch/svn/root/trunk@42495 27541ba8-7e3a-0410-8455-c3a389f83636
---
 proof/proof/src/TProofServ.cxx | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/proof/proof/src/TProofServ.cxx b/proof/proof/src/TProofServ.cxx
index 1e14314f00f..30da0f32669 100644
--- a/proof/proof/src/TProofServ.cxx
+++ b/proof/proof/src/TProofServ.cxx
@@ -399,7 +399,9 @@ Bool_t TShutdownTimer::Notify()
       TTimeStamp ts = xs->GetLastUsage();
       Long_t dt = (Long_t)(now.GetSec() - ts.GetSec()) * 1000 +
                   (Long_t)(now.GetNanoSec() - ts.GetNanoSec()) / 1000000 ;
-      Int_t to = gEnv->GetValue("ProofServ.ShutdonwTimeout", 20);
+      Int_t to = gEnv->GetValue("ProofServ.ShutdownTimeout", 20);
+      // Backward compaitibility: until 5.32 the variable was called ProofServ.ShutdonwTimeout
+      to = gEnv->GetValue("ProofServ.ShutdonwTimeout", to);
       if (dt > to * 60000) {
          Printf("TShutdownTimer::Notify: input socket: %p: did not show any activity"
                          " during the last %d mins: aborting", xs, to);
-- 
GitLab