aboutsummaryrefslogtreecommitdiff
path: root/src/or/cpuworker.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2005-05-03 03:51:20 +0000
committerNick Mathewson <nickm@torproject.org>2005-05-03 03:51:20 +0000
commitb35f7dacef6b5e4215dfba9a4088a73421fb103c (patch)
tree567d49d6244c5c07160931458b644450b25b8ce5 /src/or/cpuworker.c
parent8b9ae2522409f09584d60619fc39b421560a715e (diff)
downloadtor-b35f7dacef6b5e4215dfba9a4088a73421fb103c.tar.gz
tor-b35f7dacef6b5e4215dfba9a4088a73421fb103c.zip
Call tor_free_all instead of connections_free_all after forking
svn:r4173
Diffstat (limited to 'src/or/cpuworker.c')
-rw-r--r--src/or/cpuworker.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/cpuworker.c b/src/or/cpuworker.c
index 3a1a61a8ea..1f4f4aec1d 100644
--- a/src/or/cpuworker.c
+++ b/src/or/cpuworker.c
@@ -214,7 +214,7 @@ static int cpuworker_main(void *data) {
fd = fdarray[1]; /* this side is ours */
#ifndef TOR_IS_MULTITHREADED
tor_close_socket(fdarray[0]); /* this is the side of the socketpair the parent uses */
- connection_free_all(); /* so the child doesn't hold the parent's fd's open */
+ tor_free_all(1); /* so the child doesn't hold the parent's fd's open */
handle_signals(0); /* ignore interrupts from the keyboard, etc */
#endif
tor_free(data);