X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FSession%2FSession_ServerLauncher.cxx;h=4cfe26c20dedde0fe67b61c1913f79288052c724;hb=e7ede3527d1022d9df3cc38cd9d00d2eefb9f80f;hp=39c9c5ef6752a1f3c553ef45e048cbf4fc6f8396;hpb=e07448c48ea5b2127e34fc7b8c3427d01c7ce17b;p=modules%2Fgui.git diff --git a/src/Session/Session_ServerLauncher.cxx b/src/Session/Session_ServerLauncher.cxx index 39c9c5ef6..4cfe26c20 100755 --- a/src/Session/Session_ServerLauncher.cxx +++ b/src/Session/Session_ServerLauncher.cxx @@ -1,4 +1,4 @@ -// Copyright (C) 2007-2012 CEA/DEN, EDF R&D, OPEN CASCADE +// Copyright (C) 2007-2016 CEA/DEN, EDF R&D, OPEN CASCADE // // Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS @@ -6,7 +6,7 @@ // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public // License as published by the Free Software Foundation; either -// version 2.1 of the License. +// version 2.1 of the License, or (at your option) any later version. // // This library is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of @@ -111,8 +111,8 @@ void Session_ServerLauncher::CheckArgs() _argCopy.reserve(_argc); for (int iarg=0; iarg <_argc; iarg++) { - SCRUTE(iarg); - SCRUTE(_argv[iarg]); + //SCRUTE(iarg); + //SCRUTE(_argv[iarg]); _argCopy.push_back(_argv[iarg]); switch (argState) { @@ -124,16 +124,16 @@ void Session_ServerLauncher::CheckArgs() } case 1: // looking for server type { - // Temporary solution - // Issue 21337 - no more SalomeApp_Engine_i activation here - // TODO: To be removed as soon as any trace of SalomeAppEngine - // has been eliminated from KERNEL scripts - if (strcmp(_argv[iarg], "SalomeAppEngine")==0){ - argState = 0; - iarg += 2; // skipping "()" - break; - } - // Temporary solution + // Temporary solution + // Issue 21337 - no more SalomeApp_Engine_i activation here + // TODO: To be removed as soon as any trace of SalomeAppEngine + // has been eliminated from KERNEL scripts + if (strcmp(_argv[iarg], "SalomeAppEngine")==0){ + argState = 0; + iarg += 2; // skipping "()" + break; + } + // Temporary solution for (int i=0; i::reverse_iterator itServ; + for (itServ = _serverThreads.rbegin(); itServ !=_serverThreads.rend(); itServ++) + { + (*itServ)->Shutdown(); + } +} + /*! Destruction des classes serveur dans l'ordre inverse de creation */