3 Commits

Author SHA1 Message Date
Jack Nagel
bac6533d5c 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.
2013-07-27 23:57:35 -05:00
Jack Nagel
8234ac22e9 FormulaLock: fix uninitialized ivar 2013-04-05 22:07:11 -05:00
Jack Nagel
97d3ae1775 Extract formula locks into a class 2013-02-09 18:19:50 -06:00