diff --git a/src/ckpool.c b/src/ckpool.c index 55f9185d..0d176bac 100644 --- a/src/ckpool.c +++ b/src/ckpool.c @@ -525,7 +525,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); else ret = true; - Close(sockd); + shutdown(sockd, SHUT_WR); out: if (unlikely(!ret)) { LOGERR("Failure in send_proc from %s %s:%d", file, func, line);