Merge pull request #2309 from mitza-oci/warnings
[ACE_TAO.git] / ACE / apps / JAWS3 / jaws3 / main.cpp
blob52e2e2ac6186054d6e4b3173ea7054eb4a240a6f
1 #include "ace/Log_Msg.h"
2 #include "ace/Reactor.h"
3 #include "ace/Select_Reactor.h"
4 #include "ace/Service_Config.h"
5 #include "ace/Thread_Manager.h"
7 #include "jaws3/Event_Dispatcher.h"
8 #include "jaws3/Signal_Task.h"
10 int
11 ACE_TMAIN(int argc, ACE_TCHAR *argv[])
13 ACE_REACTOR_INSTANCE_INIT;
15 JAWS_Signal_Task::instance ();
17 if (ACE_Service_Config::open (argc, argv) == -1
18 && errno != ENOENT)
19 ACE_ERROR_RETURN ((LM_ERROR,
20 ACE_TEXT ("%p\n"),
21 ACE_TEXT ("open")),
22 1);
24 // Run forever, performing the configured services until we
25 // shutdown.
27 JAWS_Event_Dispatcher::run_event_loop ();
29 ACE_Thread_Manager::instance ()->wait ();
31 return 0;