Cleanup ACE_HAS_PTHREAD_SIGMASK_PROTOTYPE, all platforms support it so far as I can...
[ACE_TAO.git] / TAO / orbsvcs / Time_Service / Time_Service_Server.cpp
blob3b3b460b7f42a758466fa69158a83a9fa0b664b4
1 #include "orbsvcs/Log_Macros.h"
2 #include "Server_i.h"
3 #include "ace/OS_main.h"
6 // This is the main driver program for the Time Service server.
8 int
9 ACE_TMAIN (int argc, ACE_TCHAR* argv[])
11 Server_i server;
13 ORBSVCS_DEBUG ((LM_DEBUG,
14 "[SERVER] Process/Thread Id : (%P/%t) Time Service server\n"));
16 try
18 int r = server.init (argc, argv);
20 if (r == -1)
21 return 1;
22 else
24 server.run ();
27 catch (const CORBA::SystemException& sysex)
29 sysex._tao_print_exception ("System Exception");
30 return -1;
32 catch (const CORBA::UserException& userex)
34 userex._tao_print_exception ("User Exception");
35 return -1;
38 return 0;