Browse Source

Fix for calling Process::setMaxNumberOfFileHandles (0)

tags/2021-05-28
jules 7 years ago
parent
commit
7975d70afb
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      modules/juce_core/native/juce_posix_SharedCode.h

+ 1
- 1
modules/juce_core/native/juce_posix_SharedCode.h View File

@@ -158,7 +158,7 @@ bool Process::setMaxNumberOfFileHandles (int newMaxNumber) noexcept
if (newMaxNumber <= 0 && lim.rlim_cur == RLIM_INFINITY && lim.rlim_max == RLIM_INFINITY)
return true;
if (lim.rlim_cur >= (rlim_t) newMaxNumber)
if (newMaxNumber > 0 && lim.rlim_cur >= (rlim_t) newMaxNumber)
return true;
}


Loading…
Cancel
Save