Skip to content

Commit f56e1f2

Browse files
authored
Merge pull request #938 from swiftlang/fix-windows-concurrency-6.0
[6.0] Fix windows concurrency
2 parents aa971e6 + b10f9fc commit f56e1f2

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/Basic/PlatformUtility.cpp

+1-2
Original file line numberDiff line numberDiff line change
@@ -220,8 +220,7 @@ int sys::write(int fileHandle, void *destinationBuffer,
220220
// Get the current process' open file limit. Returns -1 on failure.
221221
llbuild_rlim_t sys::getOpenFileLimit() {
222222
#if defined(_WIN32)
223-
int value = _getmaxstdio();
224-
return std::min(0, value);
223+
return _getmaxstdio();
225224
#else
226225
struct rlimit rl;
227226
int ret = getrlimit(RLIMIT_NOFILE, &rl);

0 commit comments

Comments
 (0)