зеркало из https://github.com/mozilla/gecko-dev.git
84c3a8a672
As its original comments indicate, SetAllFDsToCloseOnExec has an unavoidable race condition if another thread creates file descriptors during launch. Instead, use POSIX_SPAWN_CLOEXEC_DEFAULT, which is an Apple-specific extension to posix_spawn that accomplished the desired effect atomically. This patch also introduces some RAII to simplify cleanup in error cases. MozReview-Commit-ID: 6oHggs77AiY --HG-- extra : rebase_source : a9391031a95fee4977af800ca993871277db51ce |
||
---|---|---|
.. | ||
atomics | ||
src | ||
chromium-config.mozbuild | ||
moz.build |