You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by ma...@apache.org on 2020/07/27 23:37:32 UTC
[incubator-nuttx] 02/04: arch/sim: Replace sigprocmask with
pthread_sigmask in main thread
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 <xi...@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 <xi...@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;