From e47e08887c823824bfc36f102c065075737394b1 Mon Sep 17 00:00:00 2001 From: Matthew Newhook Date: Fri, 7 Aug 2009 11:10:57 +0800 Subject: Revert "Changes for bug 3962 and 4714" This reverts commit d38ad95e45c0083d602a43e6d77e6c1599f324fe. --- cpp/src/IceGrid/NodeI.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'cpp/src/IceGrid/NodeI.cpp') diff --git a/cpp/src/IceGrid/NodeI.cpp b/cpp/src/IceGrid/NodeI.cpp index ae3f2bc43cf..bf4c17e72c7 100644 --- a/cpp/src/IceGrid/NodeI.cpp +++ b/cpp/src/IceGrid/NodeI.cpp @@ -8,9 +8,9 @@ // ********************************************************************** #include -#include #include #include +#include #include #include #include @@ -1153,7 +1153,8 @@ NodeI::removeServer(const ServerIPtr& server, const std::string& application) _serversByApplication.erase(p); string appDir = _dataDir + "/distrib/" + application; - if(IceUtilInternal::directoryExists(appDir)) + OS::structstat buf; + if(OS::osstat(appDir, &buf) != -1 && S_ISDIR(buf.st_mode)) { try { -- cgit v1.2.3