about summary refs log tree commit diff
path: root/src/rt/sync/timer.cpp
diff options
context:
space:
mode:
authorKevin Ballard <kevin@sb.org>2013-07-17 18:50:53 -0700
committerKevin Ballard <kevin@sb.org>2013-08-02 21:20:15 -0700
commit2001cc043b7c20af1f72b9c39e61070fd1c639f6 (patch)
tree5efb87ad9ec9641357dc6cc83fcfe3bcf9aaf2c4 /src/rt/sync/timer.cpp
parent70d2be0cec5b61dec30677654123044b50bb11f7 (diff)
downloadrust-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