fix(stream): check return value.

This commit is contained in:
Haojun Liao 2024-11-08 14:23:37 +08:00
parent d8098ab3e1
commit 3559188dfa
2 changed files with 2 additions and 2 deletions

View File

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

View File

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