ref: 499c637c9d6b0cddaede1ebce76aa5f96f70daab
parent: 251d168331270017652c9f7510d7a6d7b6f92e9c
author: mkf <mkf@cloud9p.org>
date: Wed Jun 5 15:08:47 EDT 2024
srv5: linux isn't happy about pthread_join, fine.
--- a/srv5.c
+++ b/srv5.c
@@ -445,7 +445,6 @@
int res[2];
int *tdata[2];
Game *g;
- int tmpbuf[64][1];
tdata[0] = (int*)emalloc(2 * sizeof(int));
tdata[1] = (int*)emalloc(2 * sizeof(int));
@@ -493,11 +492,6 @@
sysfatal("pthread_create() failed: %d\n", res[0] ? res[0] : res[1]);
dprint("play(): threads for game %d are created\n", gcount);
-
- pthread_join(c1->thread, (void*)tmpbuf);
- pthread_join(c2->thread, (void*)tmpbuf);
-
- dprint("play(): join'ed\n");
}
char*