From 13d047037aff2980203693831296f66d11f6eb98 Mon Sep 17 00:00:00 2001 From: prascle Date: Tue, 19 Feb 2008 13:58:08 +0000 Subject: [PATCH] PR: debug for supervcontainer exit --- src/Container/SALOME_Container.cxx | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) 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&) { -- 2.39.2