1 #include "Notifier_Server.h"
5 Notifier::handle_signal (int signum
, siginfo_t
*, ucontext_t
*)
8 "got signal in handle_signal %S\n",
11 // Tell the <Notifier_Server> to shut down the ORB.
23 catch (const CORBA::Exception
&)
29 Notifier::Notifier (int argc
, ACE_TCHAR
*argv
[])
33 ns_
.init (argc
, argv
);
35 catch (const CORBA::Exception
& ex
)
37 ex
._tao_print_exception ("Notifier_Server.init failed\n");
40 // Register with the ORB's Reactor to receive a signal to shut us
42 if (ns_
.reactor ()->register_handler (SIGINT
, this) == -1)
48 Notifier::~Notifier (void)
55 ACE_TMAIN(int argc
, ACE_TCHAR
*argv
[])
57 // Initialize server daemon.
58 Notifier
notifier (argc
, argv
);
60 // Loop forever handling events.