From 807f5d9af1767c47ce651a68ea93a641717dc9d9 Mon Sep 17 00:00:00 2001 From: Emery Hemingway Date: Mon, 17 Jun 2019 14:43:30 +0200 Subject: [PATCH] Use pthread_join in test/libc_pipe Ref #2303 --- repos/libports/src/test/libc_pipe/main.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/repos/libports/src/test/libc_pipe/main.cc b/repos/libports/src/test/libc_pipe/main.cc index 31da4be6e1..816dc99bf4 100644 --- a/repos/libports/src/test/libc_pipe/main.cc +++ b/repos/libports/src/test/libc_pipe/main.cc @@ -80,8 +80,7 @@ int main(int argc, char *argv[]) exit(1); } - /* pthread_join() is not implemented at this time */ - while (!reader_finished) { } + pthread_join(tid, NULL); printf("--- test finished ---\n");