kanoi 10 years ago
parent
commit
1dd80fadcb
  1. 2
      src/libckpool.c

2
src/libckpool.c

@ -673,6 +673,7 @@ char *_recv_unix_msg(int sockd, const char *file, const char *func, const int li
dealloc(buf); dealloc(buf);
} }
out: out:
shutdown(sockd, SHUT_RD);
if (unlikely(!buf)) if (unlikely(!buf))
LOGERR("Failure in recv_unix_msg from %s %s:%d", file, func, line); LOGERR("Failure in recv_unix_msg from %s %s:%d", file, func, line);
return buf; return buf;
@ -790,6 +791,7 @@ bool _send_unix_msg(int sockd, const char *buf, const char *file, const char *fu
} }
retval = true; retval = true;
out: out:
shutdown(sockd, SHUT_WR);
if (unlikely(!retval)) if (unlikely(!retval))
LOGERR("Failure in send_unix_msg from %s %s:%d", file, func, line); LOGERR("Failure in send_unix_msg from %s %s:%d", file, func, line);
return retval; return retval;

Loading…
Cancel
Save