Browse Source

Shutdown instead of closing a socket after sending a unix message allowing the receiving end to close the socket after receiving the data

master
Con Kolivas 10 years ago
parent
commit
6e9901f9fe
  1. 2
      src/ckpool.c

2
src/ckpool.c

@ -532,7 +532,7 @@ bool _send_proc(proc_instance_t *pi, const char *msg, const char *file, const ch
LOGWARNING("Failed to send %s to socket %s", msg, path); LOGWARNING("Failed to send %s to socket %s", msg, path);
else else
ret = true; ret = true;
Close(sockd); shutdown(sockd, SHUT_WR);
out: out:
if (unlikely(!ret)) { if (unlikely(!ret)) {
LOGERR("Failure in send_proc from %s %s:%d", file, func, line); LOGERR("Failure in send_proc from %s %s:%d", file, func, line);

Loading…
Cancel
Save