diff options
author | Alan Rogers <alanjrogers@me.com> | 2015-04-21 15:39:02 +1000 |
---|---|---|
committer | Saúl Ibarra Corretgé <saghul@gmail.com> | 2015-04-24 09:38:19 +0200 |
commit | 8fac49d0fcf85d3147cbb1ed8b0481d9001c4860 (patch) | |
tree | 1a3e572edbde57605c3b52134f824b36678151b1 /docs/src | |
parent | 21bcacebba21bfe1ec003069b9c96e3a6ec30e10 (diff) | |
download | libuv-8fac49d0fcf85d3147cbb1ed8b0481d9001c4860.tar.gz libuv-8fac49d0fcf85d3147cbb1ed8b0481d9001c4860.zip |
unix: open "/dev/null" instead of "/" for emfile_fd
We may not have permission to open "/". This fix allows libuv to be
used in a OS X app that has sandboxing enabled, without the need for
a temporary entitlement to allow reading of "/" (Which would never
pass app review).
In some rare cases "/dev" isn't mounted, so we open "/" as a
fallback.
PR-URL: https://github.com/libuv/libuv/pull/328
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Saúl Ibarra Corretgé <saghul@gmail.com>
Diffstat (limited to 'docs/src')
0 files changed, 0 insertions, 0 deletions