aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsotech117 <michael_foiani@brown.edu>2023-09-26 03:00:57 -0400
committersotech117 <michael_foiani@brown.edu>2023-09-26 03:00:57 -0400
commit684e6cbcbc96eb06344a597e3db44b8fe1e9ccd3 (patch)
tree51162c9a7c275e26699324893ea0c1bf1d5a446e
parent448b84240f7d2e5a33d35c892ad8fbabded7feba (diff)
small typo fixesHEADmain
-rw-r--r--server.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/server.c b/server.c
index 22ab353..1dd1a3e 100644
--- a/server.c
+++ b/server.c
@@ -171,7 +171,7 @@ main(int argc, char *argv[]) // no int here for good luck :)
pthread_create(&select_thread, NULL, select_routine, (void *) &listenerfd);
// BELOW IS FOR THE COMMAND LINE INTERFACE
- // -------------------------------------------------------------------------------------------------s
+ // --------------------------------------------------------------------------------------------------
// command line data structures
char input[COMMAND_LINE_MAX];
memset(input, 0, COMMAND_LINE_MAX);
@@ -195,8 +195,8 @@ main(int argc, char *argv[]) // no int here for good luck :)
// if "q" command: shutdown & close tcp sockets!
if (!strcmp(command, "q")) {
printf("Exiting.\n");
- cleanup_readfds_and_sockets();
close(listenerfd);
+ cleanup_readfds_and_sockets();
break;
}