!709 A核代码静态告警定期清理

Merge pull request !709 from wangchen/1112_codex
This commit is contained in:
openharmony_ci
2021-11-16 06:47:22 +00:00
committed by Gitee
22 changed files with 144 additions and 135 deletions

View File

@@ -444,7 +444,8 @@ VOID KillPgrp(UINT16 consoleId)
if ((consoleId > CONSOLE_NUM) || (consoleId <= 0)) {
return;
}
CONSOLE_CB *consoleCB = g_console[consoleId-1];
CONSOLE_CB *consoleCB = g_console[consoleId - 1];
/* the default of consoleCB->pgrpId is -1, may not be set yet, avoid killing all processes */
if (consoleCB->pgrpId < 0) {
return;
@@ -1445,7 +1446,7 @@ BOOL ConsoleEnable(VOID)
BOOL IsShellEntryRunning(UINT32 shellEntryId)
{
LosTaskCB *taskCB;
LosTaskCB *taskCB = NULL;
if (shellEntryId == SHELL_ENTRYID_INVALID) {
return FALSE;
}