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 sa...@apache.org on 2006/03/02 06:56:14 UTC
svn commit: r382305 -
/webservices/axis2/trunk/c/modules/core/transport/http/receiver/http_svr_thread.c
Author: sahan
Date: Wed Mar 1 21:56:10 2006
New Revision: 382305
URL: http://svn.apache.org/viewcvs?rev=382305&view=rev
Log:
ignoring the sigpipe in threads
Modified:
webservices/axis2/trunk/c/modules/core/transport/http/receiver/http_svr_thread.c
Modified: webservices/axis2/trunk/c/modules/core/transport/http/receiver/http_svr_thread.c
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/modules/core/transport/http/receiver/http_svr_thread.c?rev=382305&r1=382304&r2=382305&view=diff
==============================================================================
--- webservices/axis2/trunk/c/modules/core/transport/http/receiver/http_svr_thread.c (original)
+++ webservices/axis2/trunk/c/modules/core/transport/http/receiver/http_svr_thread.c Wed Mar 1 21:56:10 2006
@@ -23,6 +23,7 @@
#include <axis2_simple_http_svr_conn.h>
#include <axis2_url.h>
#include <axis2_error_default.h>
+#include <signal.h>
@@ -291,8 +292,13 @@
axis2_socket_t socket;
axis2_env_t *thread_env = NULL;
axis2_http_svr_thd_args_t *arg_list = NULL;
-
-
+
+#ifndef WIN32
+#ifdef AXIS2_SVR_MULTI_THREADED
+ signal(SIGPIPE, SIG_IGN);
+#endif
+#endif
+
arg_list = (axis2_http_svr_thd_args_t*)data;
if(NULL == arg_list)
{