!764 Codex告警清除

Merge pull request !764 from xuxinyu/master
This commit is contained in:
openharmony_ci 2022-01-10 04:56:46 +00:00 committed by Gitee
commit d6dc0642c5
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
4 changed files with 8 additions and 4 deletions

View File

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

View File

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

View File

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

View File

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