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 <zhanghongyu@xiaomi.com>
This commit is contained in:
zhanghongyu 2023-02-23 18:35:25 +08:00 committed by Xiang Xiao
parent c93c0da4b0
commit 216df60208

View File

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