diff options
author | sotech117 <michael_foiani@brown.edu> | 2023-09-26 03:00:57 -0400 |
---|---|---|
committer | sotech117 <michael_foiani@brown.edu> | 2023-09-26 03:00:57 -0400 |
commit | 684e6cbcbc96eb06344a597e3db44b8fe1e9ccd3 (patch) | |
tree | 51162c9a7c275e26699324893ea0c1bf1d5a446e | |
parent | 448b84240f7d2e5a33d35c892ad8fbabded7feba (diff) |
-rw-r--r-- | server.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; } |