From 0182d4f033f2ef736005ec300c2b330614d10cad Mon Sep 17 00:00:00 2001
From: wangzhengquan <wangzhengquan85@126.com>
Date: 星期一, 25 一月 2021 17:50:24 +0800
Subject: [PATCH] fix kill -9

---
 test_socket/bus_test.cpp |   15 ---------------
 1 files changed, 0 insertions(+), 15 deletions(-)

diff --git a/test_socket/bus_test.cpp b/test_socket/bus_test.cpp
index b35e086..1cc4ffd 100644
--- a/test_socket/bus_test.cpp
+++ b/test_socket/bus_test.cpp
@@ -32,7 +32,6 @@
 
   int rv;
   ShmModSocket *sk = (ShmModSocket *)skptr;
-printf("run_recv\n");
   struct timespec timeout = {2, 0};
   while (true) {
     printf("run_recv before\n");
@@ -50,20 +49,6 @@
   return NULL;
   
 }
-
-void *run_recv2(void *skptr) {
-  pthread_detach(pthread_self());
-  while(true) {
-    logger->debug("================run_recv\n");
-    // sleep(1);
-  }
-}
-
-void client2(int key) {
-  ShmModSocket *sk = new ShmModSocket();
-  run_recv((void *)sk);
-}
-
 
 void client(int key) {
   ShmModSocket *sk = new ShmModSocket();

--
Gitblit v1.8.0