fix:the setitimer signals the process to be locked at a fixed time. There is a static problem.

Close #I3H7TO

Change-Id: Iccfb458ed43f761fde1f943e0005f4ac1bf425bc
This commit is contained in:
zhushengle 2021-04-20 09:25:36 +08:00
parent 5cbb83dc6e
commit d44f3904cf
1 changed files with 4 additions and 0 deletions

View File

@ -586,6 +586,7 @@ typedef struct {
static VOID SwtmrProc(UINTPTR tmrArg) static VOID SwtmrProc(UINTPTR tmrArg)
{ {
unsigned int intSave;
int sig; int sig;
pid_t pid; pid_t pid;
siginfo_t info; siginfo_t info;
@ -610,7 +611,10 @@ static VOID SwtmrProc(UINTPTR tmrArg)
info.si_value.sival_ptr = arg->sigev_value.sival_ptr; info.si_value.sival_ptr = arg->sigev_value.sival_ptr;
/* Send the signal */ /* Send the signal */
SCHEDULER_LOCK(intSave);
OsDispatch(pid, &info, OS_USER_KILL_PERMISSION); OsDispatch(pid, &info, OS_USER_KILL_PERMISSION);
SCHEDULER_UNLOCK(intSave);
return; return;
} }