axis-c-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From billblo...@apache.org
Subject [axis-axis2-c-core] 05/14: fixed, server value not checked while in shutdown process
Date Sat, 04 Apr 2020 15:07:37 GMT
This is an automated email from the ASF dual-hosted git repository.

billblough pushed a commit to branch 29092007
in repository https://gitbox.apache.org/repos/asf/axis-axis2-c-core.git

commit f5b2edaa2402d83da4fac86b8fee6bb730df6c67
Author: Weerapurage Dinesh Premalal <dinesh@apache.org>
AuthorDate: Sun Oct 14 17:22:49 2007 +0000

    fixed, server value not checked while in shutdown process
---
 .../transport/http/server/simple_axis2_server/http_server_main.c | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/src/core/transport/http/server/simple_axis2_server/http_server_main.c b/src/core/transport/http/server/simple_axis2_server/http_server_main.c
index 23bb8c9..45bfc9e 100644
--- a/src/core/transport/http/server/simple_axis2_server/http_server_main.c
+++ b/src/core/transport/http/server/simple_axis2_server/http_server_main.c
@@ -231,6 +231,15 @@ void
 sig_handler(
     int signal)
 {
+
+    if (!system_env)
+    {
+        AXIS2_LOG_ERROR(system_env->log, 
+                        "Received signal %d, unable to proceed system_env is NULL ,\
+                         system exit with -1", signal);
+        _exit (-1);
+    }
+
     switch (signal)
     {
     case SIGINT:


Mime
View raw message