]> datadissipation.net git - ust.git/commitdiff
brought back accidentally removed pthread_join
authorgit <redacted>
Tue, 17 Feb 2026 18:22:04 +0000 (13:22 -0500)
committergit <redacted>
Tue, 17 Feb 2026 18:22:04 +0000 (13:22 -0500)
how have I managed to remove that in the first place

ust.c

diff --git a/ust.c b/ust.c
index 919d1d6c9350d28658165018e216ad28a0039f81..56d0482cf81b9a3353a2b54466a012133e029554 100644 (file)
--- a/ust.c
+++ b/ust.c
@@ -910,4 +910,6 @@ main(int argc, char **argv)
        pthread_t readthread, writethread;
        pthread_create(&writethread, NULL, writeport, NULL);
        pthread_create(&readthread, NULL, readport, NULL);
+       pthread_join(writethread, NULL);
+       pthread_join(readthread, NULL);
 }