From a4d18d6ab3216ce1bf8052f0fdc4ea34bc6385e8 Mon Sep 17 00:00:00 2001
From: wangzhengquan <wangzhengquan85@126.com>
Date: 星期三, 20 一月 2021 19:39:17 +0800
Subject: [PATCH] update

---
 test_net_socket/heart_beat.cpp |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/test_net_socket/heart_beat.cpp b/test_net_socket/heart_beat.cpp
index 40ea621..cd21a84 100644
--- a/test_net_socket/heart_beat.cpp
+++ b/test_net_socket/heart_beat.cpp
@@ -15,9 +15,9 @@
 
 void sigint_handler(int sig) {
    // net_mod_socket_close(server_socket);
-  printf("===Catch sigint======================\n");
-  shm_mm_wrapper_destroy();
-  exit(0);
+  // printf("===Catch sigint======================\n");
+  // shm_mm_wrapper_destroy();
+  // exit(0);
 }
 
 void server(int port) {
@@ -65,7 +65,7 @@
 
 
 void *runclient(void *arg) {
-  signal(SIGINT,  sigint_handler);
+  // signal(SIGINT,  sigint_handler);
   Targ *targ = (Targ *)arg;
   int port = targ->port;
   void *client = net_mod_socket_open();

--
Gitblit v1.8.0