From 216df60208ca6f4843f2bd212b327534d9747fa3 Mon Sep 17 00:00:00 2001 From: zhanghongyu Date: Thu, 23 Feb 2023 18:35:25 +0800 Subject: [PATCH] usrsocktest: correct the parameter when pthread_kill is called When the value of the signal is modified, the function will be faulty Signed-off-by: zhanghongyu --- examples/usrsocktest/usrsocktest_wake_with_signal.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/usrsocktest/usrsocktest_wake_with_signal.c b/examples/usrsocktest/usrsocktest_wake_with_signal.c index c2d90a2b7..8cf0af443 100644 --- a/examples/usrsocktest/usrsocktest_wake_with_signal.c +++ b/examples/usrsocktest/usrsocktest_wake_with_signal.c @@ -562,7 +562,7 @@ static void do_wake_test(enum e_test_type type, int flags) for (tidx = 0; tidx < nthreads; tidx++) { - pthread_kill(tid[tidx], 1); + pthread_kill(tid[tidx], SIGUSR1); /* Wait threads to complete work. */