From: prascle Date: Tue, 19 Feb 2008 13:58:08 +0000 (+0000) Subject: PR: debug for supervcontainer exit X-Git-Tag: V4_1_1rc2~3 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=13d047037aff2980203693831296f66d11f6eb98;p=modules%2Fkernel.git PR: debug for supervcontainer exit --- diff --git a/src/Container/SALOME_Container.cxx b/src/Container/SALOME_Container.cxx index 00345f670..39812040d 100644 --- a/src/Container/SALOME_Container.cxx +++ b/src/Container/SALOME_Container.cxx @@ -187,9 +187,16 @@ int main(int argc, char* argv[]) HandleServerSideSignals(orb); - PyGILState_STATE gstate = PyGILState_Ensure(); - //Delete python container that destroy orb from python (pyCont._orb.destroy()) - Py_Finalize(); + if (!isSupervContainer) + { + PyGILState_STATE gstate = PyGILState_Ensure(); + //Delete python container that destroy orb from python (pyCont._orb.destroy()) + Py_Finalize(); + } + else + { + orb->destroy(); + } } catch(CORBA::SystemException&) {