diff options
author | Nick Mathewson <nickm@torproject.org> | 2008-02-20 22:28:26 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2008-02-20 22:28:26 +0000 |
commit | 93aa3355161923d722d196ebb27f35c8138c4c69 (patch) | |
tree | 8790b4ceddf2e412d39972a86817226d2e658806 /src/common/compat.h | |
parent | 644452a62fde5fec66dab56c4f47204f42b57bac (diff) | |
download | tor-93aa3355161923d722d196ebb27f35c8138c4c69.tar.gz tor-93aa3355161923d722d196ebb27f35c8138c4c69.zip |
r18269@catbus: nickm | 2008-02-20 17:28:24 -0500
Apply patch from Sebastian Hahn: stop imposing an arbitrary maximum on the number of file descriptors used for busy servers. Bug reported by Olaf Selke.
svn:r13626
Diffstat (limited to 'src/common/compat.h')
-rw-r--r-- | src/common/compat.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/compat.h b/src/common/compat.h index 7be7fddcdd..0d6fd87dde 100644 --- a/src/common/compat.h +++ b/src/common/compat.h @@ -442,7 +442,7 @@ uint32_t get_uint32(const char *cp) ATTR_PURE ATTR_NONNULL((1)); void set_uint16(char *cp, uint16_t v) ATTR_NONNULL((1)); void set_uint32(char *cp, uint32_t v) ATTR_NONNULL((1)); -int set_max_file_descriptors(unsigned long limit, unsigned long cap); +int set_max_file_descriptors(unsigned long limit, int *max); int switch_id(const char *user, const char *group); #ifdef HAVE_PWD_H char *get_user_homedir(const char *username); |