diff --git a/src/server.c b/src/server.c index dfa8b3a..43ac5ac 100644 --- a/src/server.c +++ b/src/server.c @@ -92,7 +92,7 @@ int main(int argc, char *argv[]) { if (pthread_create(&dispatcher, NULL, Dispatcher, NULL) != 0) { fprintf(stderr, "pthread_create: error for Dispatcher\n"); - exit(EXIT_FAILURE); + return EXIT_FAILURE; } /* Loop to accept incoming connections */