aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatt Strapp <strap012@umn.edu>2020-11-15 13:40:53 -0600
committerMatt Strapp <strap012@umn.edu>2020-11-15 13:40:53 -0600
commit6294bcf4f406c146ad7e3cb7536552861e05903b (patch)
tree04b148828afb0f06a08a202fc5d2f5c76480a625
parenthelp (diff)
downloadcsci4061-6294bcf4f406c146ad7e3cb7536552861e05903b.tar
csci4061-6294bcf4f406c146ad7e3cb7536552861e05903b.tar.gz
csci4061-6294bcf4f406c146ad7e3cb7536552861e05903b.tar.bz2
csci4061-6294bcf4f406c146ad7e3cb7536552861e05903b.tar.lz
csci4061-6294bcf4f406c146ad7e3cb7536552861e05903b.tar.xz
csci4061-6294bcf4f406c146ad7e3cb7536552861e05903b.tar.zst
csci4061-6294bcf4f406c146ad7e3cb7536552861e05903b.zip
help
-rw-r--r--P3/server.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/P3/server.c b/P3/server.c
index a037f2a..4c5fd20 100644
--- a/P3/server.c
+++ b/P3/server.c
@@ -176,7 +176,7 @@ int main(int argc, char **argv) {
return -1;
}
// Initialize cache (extra credit B)
-
+ mkdir(cache, 0666);
// Start the server
init(port);
// Create dispatcher and worker threads (all threads should be detachable)
@@ -200,6 +200,7 @@ int main(int argc, char **argv) {
fclose(logfile);
// Remove cache (extra credit B)
+ printf("All threads have been successfully killed and cache has successfully been cleared.\nExiting now.\n");
return 0;
}