From 2612d4811f72395354fd895daffd494edc46fbfe Mon Sep 17 00:00:00 2001
From: wangzhengquan <wangzhengquan85@126.com>
Date: 星期二, 04 八月 2020 16:27:51 +0800
Subject: [PATCH] fix sendandrecv

---
 src/util/sem_util.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/src/util/sem_util.c b/src/util/sem_util.c
index bf08adf..e7c98b9 100644
--- a/src/util/sem_util.c
+++ b/src/util/sem_util.c
@@ -4,6 +4,7 @@
 static Logger logger = LoggerFactory::getLogger();
 
 int SemUtil::get(key_t key, unsigned int value) {
+// printf("==================SemUtil::get===============================\n");
   int semid, perms;
 
   perms = S_IRUSR | S_IWUSR;
@@ -113,7 +114,7 @@
 
   while (semtimedop(semId, &sops, 1, timeout) == -1)
     if (errno != EINTR) {
-      //err_msg(errno, "SemUtil::dec_timeout");
+      err_msg(errno, "SemUtil::dec_timeout");
       return -1;
     }
 

--
Gitblit v1.8.0