提交 a393cc75 编写于 作者: B Bomin Zhang

fix td-1242

上级 95fc76d6
......@@ -120,8 +120,8 @@ int32_t main(int32_t argc, char *argv[]) {
syslog(LOG_INFO, "Started TDengine service successfully.");
for (int res = tsem_wait(&exitSem); res != 0; res = tsem_wait(&exitSem)) {
if (res != EINTR) {
syslog(LOG_ERR, "failed to wait exit semphore: %d", res);
if (errno != EINTR) {
syslog(LOG_ERR, "failed to wait exit semphore: %s", strerror(errno));
break;
}
}
......
......@@ -104,7 +104,7 @@ int main(int argc, char *argv[]) {
sInfo("TAOS arbitrator: %s:%d is running", tsNodeFqdn, tsArbitratorPort);
for (int res = tsem_wait(&tsArbSem); res != 0; res = tsem_wait(&tsArbSem)) {
if (res != EINTR) break;
if (errno != EINTR) break;
}
taosCloseTcpThreadPool(tsArbTcpPool);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册