diff options
author | nobody <nobody@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2003-04-10 19:59:37 +0000 |
---|---|---|
committer | nobody <nobody@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2003-04-10 19:59:37 +0000 |
commit | 3df4acfa816441fc28a95dee6d0191a927145d95 (patch) | |
tree | b5ae7ca44662cfd8e5c95f1826e4406021a606f5 /apps/JAWS2/main.cpp | |
parent | 60a5612b83d856fc0adc52b9f39fac9960ec9818 (diff) | |
download | ATCD-pre-subset.tar.gz |
This commit was manufactured by cvs2svn to create tag 'pre-subset'.pre-subset
Diffstat (limited to 'apps/JAWS2/main.cpp')
-rw-r--r-- | apps/JAWS2/main.cpp | 47 |
1 files changed, 0 insertions, 47 deletions
diff --git a/apps/JAWS2/main.cpp b/apps/JAWS2/main.cpp deleted file mode 100644 index d1bd6f46dcb..00000000000 --- a/apps/JAWS2/main.cpp +++ /dev/null @@ -1,47 +0,0 @@ -// $Id$ - -#include "JAWS/Server.h" -#include "HTTP_10.h" - -ACE_RCSID(PROTOTYPE, main, "$Id$") - -#ifdef ACE_HAS_SIG_C_FUNC -extern "C" -{ -#endif /* ACE_HAS_SIG_C_FUNC */ - -static void -handler (int) -{ - ACE_OS::exit (0); - // call exit() so that static destructors get called -} - -#ifdef ACE_HAS_SIG_C_FUNC -} -#endif /* ACE_HAS_SIG_C_FUNC */ - -static JAWS_HTTP_10_Read_Task HTTP_Read; -static JAWS_HTTP_10_Parse_Task HTTP_Parse; -static JAWS_HTTP_10_Write_Task HTTP_Write; - -int -main (int argc, char *argv[]) -{ - ACE_OS::signal (SIGCHLD, SIG_IGN); - - // SigAction not needed since the handler will shutdown the server. - ACE_OS::signal (SIGINT, (ACE_SignalHandler) handler); - ACE_OS::signal (SIGUSR2, (ACE_SignalHandler) handler); - - JAWS_Server server (argc, argv); - - HTTP_Read.next (&HTTP_Parse); - HTTP_Parse.next (&HTTP_Write); - // HTTP_Write.next (JAWS_Pipeline_Done_Task_Singleton::instance ()); - - if (server.open (&HTTP_Read) == -1) - ACE_DEBUG ((LM_DEBUG, "JAWS: Error openning server\n")); - - return 0; -} |