summaryrefslogtreecommitdiff
path: root/src/or/cpuworker.c
diff options
context:
space:
mode:
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 155a875fa6..f27de2f429 100644
--- a/src/or/cpuworker.c
+++ b/src/or/cpuworker.c
@@ -272,7 +272,7 @@ static int cpuworker_main(void *data) {
crypto_free_pk_env(onion_key);
if (last_onion_key)
crypto_free_pk_env(last_onion_key);
- close(fd);
+ tor_close_socket(fd);
spawn_exit();
return 0; /* windows wants this function to return an int */
}