minor changes

This commit is contained in:
Shengliang Guan 2022-03-26 23:04:51 +08:00
parent d7e13ef739
commit 9c1f71459e
1 changed files with 1 additions and 0 deletions

View File

@ -381,6 +381,7 @@ SProcObj *taosProcInit(const SProcCfg *pCfg) {
pProc->pid = fork();
if (pProc->pid == 0) {
pProc->isChild = 1;
prctl(PR_SET_NAME, pProc->name, NULL, NULL, NULL);
} else {
pProc->isChild = 0;
uInfo("this is parent process, child pid:%d", pProc->pid);