You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by na...@apache.org on 2006/02/15 07:06:57 UTC

svn commit: r377947 - /webservices/axis2/trunk/c/modules/core/transport/http/server/http_server_main.c

Author: nandika
Date: Tue Feb 14 22:06:55 2006
New Revision: 377947

URL: http://svn.apache.org/viewcvs?rev=377947&view=rev
Log:
signal handling masked for win32

Modified:
    webservices/axis2/trunk/c/modules/core/transport/http/server/http_server_main.c

Modified: webservices/axis2/trunk/c/modules/core/transport/http/server/http_server_main.c
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/modules/core/transport/http/server/http_server_main.c?rev=377947&r1=377946&r2=377947&view=diff
==============================================================================
--- webservices/axis2/trunk/c/modules/core/transport/http/server/http_server_main.c (original)
+++ webservices/axis2/trunk/c/modules/core/transport/http/server/http_server_main.c Tue Feb 14 22:06:55 2006
@@ -24,6 +24,7 @@
 #include <axis2_thread_pool.h>
 #include <signal.h>
 
+
 axis2_env_t *system_env = NULL;
 axis2_transport_receiver_t *server = NULL;
 /***************************** Function headers *******************************/
@@ -116,8 +117,12 @@
 	
     axis2_error_init();
 	system_env = env;
+	
+#ifndef WIN32
     signal(SIGINT, sig_handler);
-	signal(SIGPIPE, sig_handler);
+	signal(SIGPIPE, sig_handler); 
+#endif	
+
 	AXIS2_LOG_INFO(env->log, "Starting Axis2 HTTP server....");
 	AXIS2_LOG_INFO(env->log, "Server port : %d", port);
 	AXIS2_LOG_INFO(env->log, "Repo location : %s", repo_path);
@@ -168,6 +173,8 @@
 /**
  * Signal handler
  */
+#ifndef WIN32
+ 
 void sig_handler(int signal)
 {
 	switch(signal)
@@ -193,3 +200,4 @@
 		}
 	}
 }
+#endif
\ No newline at end of file