summaryrefslogtreecommitdiff
path: root/TAO/tests/Client_Leaks/Process.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/tests/Client_Leaks/Process.cpp')
-rw-r--r--TAO/tests/Client_Leaks/Process.cpp27
1 files changed, 27 insertions, 0 deletions
diff --git a/TAO/tests/Client_Leaks/Process.cpp b/TAO/tests/Client_Leaks/Process.cpp
new file mode 100644
index 00000000000..54a6acd58f3
--- /dev/null
+++ b/TAO/tests/Client_Leaks/Process.cpp
@@ -0,0 +1,27 @@
+//
+// $Id$
+//
+#include "Process.h"
+#include "ace/OS_NS_unistd.h"
+
+ACE_RCSID(Client_Leaks, Process, "$Id$")
+
+Process::Process (CORBA::ORB_ptr orb)
+ : orb_ (CORBA::ORB::_duplicate (orb))
+{
+}
+
+CORBA::Long
+Process::get_process_id (ACE_ENV_SINGLE_ARG_DECL_NOT_USED)
+ ACE_THROW_SPEC ((CORBA::SystemException))
+{
+ return ACE_OS::getpid ();
+}
+
+void
+Process::shutdown (ACE_ENV_SINGLE_ARG_DECL)
+ ACE_THROW_SPEC ((CORBA::SystemException))
+{
+ this->orb_->shutdown (0 ACE_ENV_ARG_PARAMETER);
+ ACE_CHECK;
+}