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 <qiaowei@xiaomi.com>
Change-Id: I4a4b06220a28fcf9d50debfd8a3b789fdbdf1976
This commit is contained in:
qiaowei 2020-07-07 08:48:49 +08:00 committed by Abdelatif Guettouche
parent 278c9fe5f5
commit d07db1fa5e

View File

@ -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 */