aboutsummaryrefslogtreecommitdiff
path: root/src/or/dirserv.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2010-12-01 11:42:34 -0500
committerNick Mathewson <nickm@torproject.org>2010-12-01 11:42:34 -0500
commit9908404f0189aad3917960ba63661079e546f150 (patch)
tree58e8d682c2945a55071580b053f24d3999bd641c /src/or/dirserv.c
parentfa1a4196225bcdc787342ee6f60c4f6ccdfe1879 (diff)
parenta961521a86c439ab2ba1073daa6392a069903db1 (diff)
downloadtor-9908404f0189aad3917960ba63661079e546f150.tar.gz
tor-9908404f0189aad3917960ba63661079e546f150.zip
Merge remote branch 'sjmurdoch/cloexec'
Diffstat (limited to 'src/or/dirserv.c')
-rw-r--r--src/or/dirserv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/dirserv.c b/src/or/dirserv.c
index a394bf62e2..edba9fbd8a 100644
--- a/src/or/dirserv.c
+++ b/src/or/dirserv.c
@@ -2446,7 +2446,7 @@ dirserv_read_measured_bandwidths(const char *from_file,
smartlist_t *routerstatuses)
{
char line[256];
- FILE *fp = fopen(from_file, "r");
+ FILE *fp = tor_fopen_cloexec(from_file, "r");
int applied_lines = 0;
time_t file_time;
int ok;