diff options
| author | Kevin Ballard <kevin@sb.org> | 2013-07-17 18:50:53 -0700 |
|---|---|---|
| committer | Kevin Ballard <kevin@sb.org> | 2013-08-02 21:20:15 -0700 |
| commit | 2001cc043b7c20af1f72b9c39e61070fd1c639f6 (patch) | |
| tree | 5efb87ad9ec9641357dc6cc83fcfe3bcf9aaf2c4 /src/rt/sync/timer.cpp | |
| parent | 70d2be0cec5b61dec30677654123044b50bb11f7 (diff) | |
| download | rust-2001cc043b7c20af1f72b9c39e61070fd1c639f6.tar.gz rust-2001cc043b7c20af1f72b9c39e61070fd1c639f6.zip | |
Bump fd limit on macos when running rt tests
OS X defaults the ulimit for open files to 256 for programs launched from the Terminal (GUI apps get a higher default). Unfortunately this is too low for the rt tests, which deliberately overcommit and create a lot of threads (which means a lot of schedulers, and each scheduler needs at least 2 fds). By calling sysctl() and setrlimit() we can bump the fd limit up to the maximum allowed (on stock OS X it's 10240). Fixes #7772.
Diffstat (limited to 'src/rt/sync/timer.cpp')
0 files changed, 0 insertions, 0 deletions
