You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by ag...@apache.org on 2020/07/07 23:20:15 UTC

[incubator-nuttx-apps] branch master updated: ostest: fix assert when open CONFIG_SIG_DEFAULT

This is an automated email from the ASF dual-hosted git repository.

aguettouche pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx-apps.git


The following commit(s) were added to refs/heads/master by this push:
     new d07db1f  ostest: fix assert when open CONFIG_SIG_DEFAULT
d07db1f is described below

commit d07db1fa5e29c522dc8e57d90b649b47091b628e
Author: qiaowei <qi...@xiaomi.com>
AuthorDate: Tue Jul 7 08:48:49 2020 +0800

    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 <qi...@xiaomi.com>
    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 586fa8e..68938ce 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 */