summaryrefslogtreecommitdiffhomepage
path: root/src/tinyproxy.c
diff options
context:
space:
mode:
authorRobert James Kaes <rjkaes@users.sourceforge.net>2002-01-25 00:01:45 +0000
committerRobert James Kaes <rjkaes@users.sourceforge.net>2002-01-25 00:01:45 +0000
commit1819c0f818b281a57ac6fddcaae3dbbf615a2da1 (patch)
tree92ae4102bc15073e6e3ebe9dfdf09b8b5b6032d7 /src/tinyproxy.c
parent388920bc53a01d983cd438d8ee1f1518f92097ce (diff)
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.
Diffstat (limited to 'src/tinyproxy.c')
-rw-r--r--src/tinyproxy.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/tinyproxy.c b/src/tinyproxy.c
index f5edb56..6e050c2 100644
--- a/src/tinyproxy.c
+++ b/src/tinyproxy.c
@@ -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();
/*