diff --git a/testing/ostest/cancel.c b/testing/ostest/cancel.c index f9751ee05..c5b212c3f 100644 --- a/testing/ostest/cancel.c +++ b/testing/ostest/cancel.c @@ -236,6 +236,7 @@ static FAR void *sig_waiter(FAR void *parameter) printf("sig_waiter: Waiting to receive signal %d ...\n", SIG_WAITCANCEL); + sigemptyset(&set); ret = sigwaitinfo(&set, &info); pthread_testcancel();