arch/sim: Replace sigprocmask with pthread_sigmask in main thread
like other idle thread Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
parent
f2446ecb90
commit
71a9d2402d
@ -270,7 +270,7 @@ void sim_cpu0_start(void)
|
||||
sigemptyset(&set);
|
||||
sigaddset(&set, SIGUSR1);
|
||||
|
||||
ret = sigprocmask(SIG_UNBLOCK, &set, NULL);
|
||||
ret = pthread_sigmask(SIG_UNBLOCK, &set, NULL);
|
||||
if (ret < 0)
|
||||
{
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user