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:
Xiang Xiao 2020-07-25 23:25:34 +08:00 committed by Masayuki Ishikawa
parent f2446ecb90
commit 71a9d2402d

View File

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