Codex告警清除
【背景】 Codex扫描告警清除 【修改方案】 将不可屏蔽告警进行修复 re #I4PNO3 Signed-off-by: xuiny <xuxinyu6@huawei.com> Change-Id: If6f85eb9679d47e6256f24cdc74246df78da579d
This commit is contained in:
parent
997e61ed53
commit
1cdd7307f3
|
@ -364,11 +364,13 @@ void ChildExec(const char *cmdName, char *const paramArray[])
|
|||
gid = getpgrp();
|
||||
if (gid < 0) {
|
||||
printf("get group id failed, pgrpid %d, errno %d\n", gid, errno);
|
||||
exit(1);
|
||||
}
|
||||
|
||||
ret = tcsetpgrp(STDIN_FILENO, gid);
|
||||
if (ret != 0) {
|
||||
printf("tcsetpgrp failed, errno %d\n", errno);
|
||||
exit(1);
|
||||
}
|
||||
|
||||
ret = execve(cmdName, paramArray, NULL);
|
||||
|
|
|
@ -40,7 +40,6 @@
|
|||
#include "los_process_pri.h"
|
||||
#include "los_hw.h"
|
||||
|
||||
static struct rlimit g_defaultLimit = { 0 };
|
||||
/*
|
||||
* Supply some suitable values for constants that may not be present
|
||||
* in all configurations.
|
||||
|
@ -168,7 +167,10 @@ int getrlimit(int resource, struct rlimit *rlim)
|
|||
}
|
||||
|
||||
if (resourceLimit == NULL) {
|
||||
resourceLimit = &g_defaultLimit;
|
||||
rlim->rlim_cur = 0;
|
||||
rlim->rlim_max = 0;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
SCHEDULER_LOCK(intSave);
|
||||
|
|
|
@ -319,7 +319,7 @@ static INT32 HiDumperIoctl(struct file *filep, INT32 cmd, unsigned long arg)
|
|||
break;
|
||||
case HIDUMPER_MEM_DATA:
|
||||
if (g_adapter.DumpMemData != NULL) {
|
||||
g_adapter.DumpMemData((struct MemDumpParam *)arg);
|
||||
g_adapter.DumpMemData((struct MemDumpParam *)((UINTPTR)arg));
|
||||
}
|
||||
break;
|
||||
default:
|
||||
|
|
|
@ -2570,7 +2570,7 @@ int SysPselect6(int nfds, fd_set *readfds, fd_set *writefds, fd_set *exceptfds,
|
|||
((struct timeval *)timeout)->tv_usec = timeout->tv_nsec / 1000; /* 1000, convert ns to us */
|
||||
|
||||
if (data != NULL) {
|
||||
retVal = LOS_ArchCopyFromUser(&(setl.sig[0]), (int *)data[0], sizeof(sigset_t));
|
||||
retVal = LOS_ArchCopyFromUser(&(setl.sig[0]), (int *)((UINTPTR)data[0]), sizeof(sigset_t));
|
||||
if (retVal != 0) {
|
||||
ret = -EFAULT;
|
||||
FREE_DUP(timeout);
|
||||
|
|
Loading…
Reference in New Issue