This is an automated email from the ASF dual-hosted git repository. masayuki pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git
commit 71a9d2402de505ea7d1f8f556b1fdbf2f85f1111 Author: Xiang Xiao <xiaoxi...@xiaomi.com> AuthorDate: Sat Jul 25 23:25:34 2020 +0800 arch/sim: Replace sigprocmask with pthread_sigmask in main thread like other idle thread Signed-off-by: Xiang Xiao <xiaoxi...@xiaomi.com> --- arch/sim/src/sim/up_simsmp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/sim/src/sim/up_simsmp.c b/arch/sim/src/sim/up_simsmp.c index 22f68a5..68c8469 100644 --- a/arch/sim/src/sim/up_simsmp.c +++ b/arch/sim/src/sim/up_simsmp.c @@ -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;