aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorJack Nagel2012-05-08 21:40:55 -0500
committerJack Nagel2012-05-23 17:43:14 -0500
commit3525e4b730b03d8c49af07bc0332199124baf919 (patch)
tree6417289b576605013987387dbcd30ae738c5b047 /Library/Formula
parent6e12e07ef6501ec267ea2566d54f81770a57a401 (diff)
downloadhomebrew-3525e4b730b03d8c49af07bc0332199124baf919.tar.bz2
Set close-on-exec on the error pipe
We use a pipe to marshal exceptions from the build script back to the main Homebrew process; the associated file descriptor is stored in an environment variable so that the script can figure out which descriptor to use after being exec'd. However, any child processes of the build script inherit this descriptor (i.e. anything spawned via "system" by the formula during installation). Normally this is not an issue, but if a formula executes a long-running process such as a daemon, the main Homebrew process will never see EOF on the error pipe because the daemon still has an open descriptor. We can fix this while preserving current behavior by setting the close-on-exec flag on the build script's error pipe descriptor. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library/Formula')
0 files changed, 0 insertions, 0 deletions