fix td-1242

This commit is contained in:
Bomin Zhang 2020-08-27 09:26:31 +08:00
parent 95fc76d6ec
commit a393cc7524
2 changed files with 3 additions and 3 deletions

View File

@ -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;
}
}

View File

@ -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);