diff options
| author | Pieter Wuille <[email protected]> | 2013-04-26 00:46:47 +0200 |
|---|---|---|
| committer | Pieter Wuille <[email protected]> | 2013-04-29 01:46:24 +0200 |
| commit | ba29a5590bc4479d74454f0b9fdaf007d9d80221 (patch) | |
| tree | 3bcafc521d283c9076704dc1aa51400c631ed1eb /src/util.h | |
| parent | Merge pull request #2586 from laanwj/2013_04_winsock_init (diff) | |
| download | discoin-ba29a5590bc4479d74454f0b9fdaf007d9d80221.tar.xz discoin-ba29a5590bc4479d74454f0b9fdaf007d9d80221.zip | |
Try to increase file descriptor rlimit if necessary
As the default can be too low, especially on OSX.
Diffstat (limited to 'src/util.h')
| -rw-r--r-- | src/util.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/util.h b/src/util.h index 0641c4be7..3d2536450 100644 --- a/src/util.h +++ b/src/util.h @@ -197,6 +197,7 @@ bool WildcardMatch(const std::string& str, const std::string& mask); void FileCommit(FILE *fileout); int GetFilesize(FILE* file); bool TruncateFile(FILE *file, unsigned int length); +int RaiseFileDescriptorLimit(int nMinFD); void AllocateFileRange(FILE *file, unsigned int offset, unsigned int length); bool RenameOver(boost::filesystem::path src, boost::filesystem::path dest); boost::filesystem::path GetDefaultDataDir(); |