diff --git a/source/common/src/rsync.c b/source/common/src/rsync.c index 15c296d730..8b453f7d82 100644 --- a/source/common/src/rsync.c +++ b/source/common/src/rsync.c @@ -131,7 +131,7 @@ void stopRsync() { int32_t ret = tsnprintf(buf, tListLen(buf), "kill -9 %d", pid); if (ret > 0) { uInfo("kill rsync program pid:%d", pid); - system(buf); + code = system(buf); } } #endif diff --git a/source/os/src/osSemaphore.c b/source/os/src/osSemaphore.c index 1b9e8d3273..e37182ce16 100644 --- a/source/os/src/osSemaphore.c +++ b/source/os/src/osSemaphore.c @@ -267,7 +267,7 @@ int32_t taosGetPIdByName(const char* name, int32_t* pPId) { continue; } - sscanf(buf, "%*s %s", bufx); + ret = sscanf(buf, "%*s %s", bufx); if (!strcmp(bufx, name)) { char* end = NULL; *pPId = taosStr2Int32(ptr->d_name, &end, 10);