3 #if !defined(__ACE_INLINE__)
5 #endif /* __ACE_INLINE__ */
7 #include "ace/OS_NS_unistd.h"
10 Callback_i::shutdown (CORBA::Boolean is_clean
)
14 ACE_DEBUG ((LM_DEBUG
, "Performing catastrophic shutdown\n"));
16 // OpenVMS seems to hang and not abort and dump core when abort() is called
17 // here. This needs further investigation.
18 #if defined (DEC_CXX) || defined (ACE_OPENVMS)
25 this->orb_
->shutdown (0);
27 ACE_DEBUG ((LM_DEBUG
, "Shutdown: Performed clean shutdown\n"));
30 // ****************************************************************
33 Simple_Server_i::test_method (CORBA::Boolean do_callback
,
34 CORBA::Boolean is_clean
,
35 Callback_ptr callback
)
39 ACE_DEBUG ((LM_DEBUG
, "Callback to shutdown client (%d)\n",
41 callback
->shutdown (is_clean
);
43 ACE_Time_Value
tv (0, 20000);
49 Simple_Server_i::shutdown_now (CORBA::Boolean is_clean
)
53 ACE_DEBUG ((LM_DEBUG
, "Performing catastrophic shutdown\n"));
54 #if defined (DEC_CXX) || defined (ACE_OPENVMS)
62 ACE_DEBUG ((LM_DEBUG
, "shutdown_now:Performing clean shutdown\n"));
63 this->orb_
->shutdown (0);
67 Simple_Server_i::shutdown (void)
69 this->orb_
->shutdown (0);
72 // ****************************************************************
75 Middle_i::test_method (CORBA::Boolean do_callback
,
76 CORBA::Boolean is_clean
,
77 Callback_ptr callback
)
82 this->server_
->test_method (0,
87 this->server_
->test_method (do_callback
,
93 this->server_
->test_method (0,
102 Middle_i::shutdown_now (CORBA::Boolean is_clean
)
104 this->server_
->shutdown_now (is_clean
);
108 Middle_i::shutdown (void)
112 this->server_
->shutdown ();
114 catch (const CORBA::Exception
&)
119 this->orb_
->shutdown (0);