aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/test/testing_env.rb
diff options
context:
space:
mode:
authorJack Nagel2013-07-27 23:53:53 -0500
committerJack Nagel2013-07-27 23:57:35 -0500
commitbac6533d5cc5f5fa05d7bdfdbdeaa29a55488bc8 (patch)
tree6c2c1d6911ac645fa4be9534e4a467983e3b34c2 /Library/Homebrew/test/testing_env.rb
parent6242a6d7fa0b9a928b8bd53560c058f7b876eae4 (diff)
downloadbrew-bac6533d5cc5f5fa05d7bdfdbdeaa29a55488bc8.tar.bz2
Set close-on-exec on lock file descriptors
The formula locks used by the installer and commands like link and unlink are backed by open files and flock(). The open file descriptors are thus leaked to any subprocesses. This can result in weird behavior in programs spawned from formula that do not expect to inherit these descriptors. Fix this by setting close-on-exec on the lock file descriptors. Fixes Homebrew/homebrew#21486.
Diffstat (limited to 'Library/Homebrew/test/testing_env.rb')
0 files changed, 0 insertions, 0 deletions