Skip to content

Commit

Permalink
Merge pull request #938 from swiftlang/fix-windows-concurrency-6.0
Browse files Browse the repository at this point in the history
[6.0] Fix windows concurrency
  • Loading branch information
shahmishal authored Sep 5, 2024
2 parents aa971e6 + b10f9fc commit f56e1f2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/Basic/PlatformUtility.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -220,8 +220,7 @@ int sys::write(int fileHandle, void *destinationBuffer,
// Get the current process' open file limit. Returns -1 on failure.
llbuild_rlim_t sys::getOpenFileLimit() {
#if defined(_WIN32)
int value = _getmaxstdio();
return std::min(0, value);
return _getmaxstdio();
#else
struct rlimit rl;
int ret = getrlimit(RLIMIT_NOFILE, &rl);
Expand Down

0 comments on commit f56e1f2

Please sign in to comment.