From d07db1fa5e29c522dc8e57d90b649b47091b628e Mon Sep 17 00:00:00 2001 From: qiaowei Date: Tue, 7 Jul 2020 08:48:49 +0800 Subject: [PATCH] ostest: fix assert when open CONFIG_SIG_DEFAULT SIGKILL was captured and call nxsig_abnormal_termination, which kills the children when SIGCHLD was set. Solution: change SIGKILL to SIGUSR1. Signed-off-by: qiaowei Change-Id: I4a4b06220a28fcf9d50debfd8a3b789fdbdf1976 --- testing/ostest/mqueue.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/testing/ostest/mqueue.c b/testing/ostest/mqueue.c index 586fa8e0b..68938ce82 100644 --- a/testing/ostest/mqueue.c +++ b/testing/ostest/mqueue.c @@ -359,7 +359,7 @@ void mqueue_test(void) /* Wake up the receiver thread with a signal */ printf("mqueue_test: Killing receiver\n"); - pthread_kill(receiver, 9); + pthread_kill(receiver, SIGUSR1); /* Wait a bit to see if the thread exits on its own */