From 3a89a77e79407d0d638ddf983ee580410cf807c5 Mon Sep 17 00:00:00 2001
From: wangzhengquan <wangzhengquan85@126.com>
Date: 星期二, 04 八月 2020 15:56:12 +0800
Subject: [PATCH] fix sendto

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

diff --git a/src/util/sem_util.c b/src/util/sem_util.c
index 1dcf00d..bf08adf 100644
--- a/src/util/sem_util.c
+++ b/src/util/sem_util.c
@@ -72,7 +72,7 @@
 
 /* Reserve semaphore - decrement it by 1 */
 int SemUtil::dec(int semId) {
-logger.debug("%d: SemUtil::dec\n", semId);
+// logger.debug("%d: SemUtil::dec\n", semId);
   struct sembuf sops;
 
   sops.sem_num = 0;
@@ -113,7 +113,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