aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatt Strapp <strap012@umn.edu>2020-11-24 16:41:10 -0600
committerMatt Strapp <strap012@umn.edu>2020-11-24 16:41:10 -0600
commit3cab8ec78f5783cfc1e09586e5c8451d81555dc9 (patch)
tree8a74493e904b7d72872b5000f98657389ebc7d86
parentforgot to commit these (diff)
downloadcsci4061-3cab8ec78f5783cfc1e09586e5c8451d81555dc9.tar
csci4061-3cab8ec78f5783cfc1e09586e5c8451d81555dc9.tar.gz
csci4061-3cab8ec78f5783cfc1e09586e5c8451d81555dc9.tar.bz2
csci4061-3cab8ec78f5783cfc1e09586e5c8451d81555dc9.tar.lz
csci4061-3cab8ec78f5783cfc1e09586e5c8451d81555dc9.tar.xz
csci4061-3cab8ec78f5783cfc1e09586e5c8451d81555dc9.tar.zst
csci4061-3cab8ec78f5783cfc1e09586e5c8451d81555dc9.zip
change thing???
Diffstat (limited to '')
-rw-r--r--P3/server.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/P3/server.c b/P3/server.c
index 065817e..6659e38 100644
--- a/P3/server.c
+++ b/P3/server.c
@@ -76,10 +76,9 @@ void *dynamic_pool_size_update(void *arg) {
wIndex++;
Wargs[i] = i;
pthread_create(&wID[i], &attr, worker, (void *)&Wargs[i]); //TODO: Worker arguments
- char* threadName = calloc(16,sizeof(char));
+ char threadName[16];
sprintf(threadName, "Worker %d", i);
pthread_setname_np(wID[i], threadName);
- free(threadName);
}
}
free(Wargs);