diff options
author | Nick Mathewson <nickm@torproject.org> | 2010-11-20 01:16:29 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2010-11-20 01:16:29 -0500 |
commit | e669d25e43d4c21f11a396c07dc8ed632b406139 (patch) | |
tree | 402e8dcab343ddba8f8c66daa7d197616f402750 /src/or/dirserv.c | |
parent | 5a66de7015d32e723f13171b622a8dabcef05126 (diff) | |
download | tor-e669d25e43d4c21f11a396c07dc8ed632b406139.tar.gz tor-e669d25e43d4c21f11a396c07dc8ed632b406139.zip |
Do cloexec on socketpairs and stdio files
Diffstat (limited to 'src/or/dirserv.c')
-rw-r--r-- | src/or/dirserv.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/dirserv.c b/src/or/dirserv.c index 4f793dc746..4410d558e0 100644 --- a/src/or/dirserv.c +++ b/src/or/dirserv.c @@ -2445,7 +2445,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; |