Added code to check for "errors" from the accept call in thread_main() and

also a new thread_kill_threads() function which should cancel all threads
when the main thread is being closed.
This commit is contained in:
Robert James Kaes committed 2002-01-25 00:01:45 +00:00
1 parent 388920bc53
commit 1819c0f818
4 files changed
+33 -3

No files matched your search

+3 -1
View File
@@ -1,4 +1,4 @@
/* $Id: tinyproxy.c,v 1.21 2001-12-23 22:00:36 rjkaes Exp $
/* $Id: tinyproxy.c,v 1.22 2002-01-25 00:01:45 rjkaes Exp $
*
* The initialise routine. Basically sets up all the initial stuff (logfile,
* listening socket, config options, etc.) and then sits there and loops
@@ -432,6 +432,8 @@ main(int argc, char **argv)
} while (!config.quit);
log_message(LOG_INFO, "Shutting down.");
thread_kill_threads();
thread_close_sock();
/*