From 39020d519e6cc2663fdc04db008b3f0edcd50460 Mon Sep 17 00:00:00 2001 From: Ian Henriksen Date: Tue, 5 Dec 2023 14:11:33 -0800 Subject: [PATCH] Fix thread leak in external_syncvar test. Fixes #197. --- test/basics/external_syncvar.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/basics/external_syncvar.c b/test/basics/external_syncvar.c index ede86bad5..94fec5d88 100644 --- a/test/basics/external_syncvar.c +++ b/test/basics/external_syncvar.c @@ -34,7 +34,7 @@ int main(void) qthread_syncvar_readFE(&readout, &x); iprintf("found readout = %lu\n", (unsigned long)readout); - return 0; + return pthread_join(thread, NULL); } /* vim:set expandtab: */