|
|
@ -95,6 +95,7 @@ retry: |
|
|
|
buf = recv_unix_msg(sockd); |
|
|
|
buf = recv_unix_msg(sockd); |
|
|
|
if (!buf) { |
|
|
|
if (!buf) { |
|
|
|
LOGWARNING("Failed to get message in listener"); |
|
|
|
LOGWARNING("Failed to get message in listener"); |
|
|
|
|
|
|
|
send_unix_msg(sockd, "failed"); |
|
|
|
} else if (!strncasecmp(buf, "shutdown", 8)) { |
|
|
|
} else if (!strncasecmp(buf, "shutdown", 8)) { |
|
|
|
LOGWARNING("Listener received shutdown message, terminating ckpool"); |
|
|
|
LOGWARNING("Listener received shutdown message, terminating ckpool"); |
|
|
|
send_unix_msg(sockd, "exiting"); |
|
|
|
send_unix_msg(sockd, "exiting"); |
|
|
|