summaryrefslogtreecommitdiffstats
path: root/tools/releasetools/img_from_target_files
diff options
context:
space:
mode:
authorYing Wang <wangying@google.com>2010-12-13 16:25:36 -0800
committerYing Wang <wangying@google.com>2011-02-10 11:36:43 -0800
commit7e6d4e45d92fd51f42812ae63ac6e532887bfe0a (patch)
tree74e305fd1282454dc82c707ae3e78c45a1940536 /tools/releasetools/img_from_target_files
parent4a2ecaf5dc7434dd06a1fbcf14c56e6a7c7b383b (diff)
downloadbuild-7e6d4e45d92fd51f42812ae63ac6e532887bfe0a.zip
build-7e6d4e45d92fd51f42812ae63ac6e532887bfe0a.tar.gz
build-7e6d4e45d92fd51f42812ae63ac6e532887bfe0a.tar.bz2
Close inherited PIPE before doing work
Gmake in Darwin has file descriptor leak. In a full build, ota_from_target_files will inherits more than 2000 open PIPEs from gmake and fails in a call to select.select(). This change fixes the build by closing the PIPEs before doing real work. Change-Id: Ie7035d7add0b1da3afb6bf9c2009d40f8c7d29b3
Diffstat (limited to 'tools/releasetools/img_from_target_files')
-rwxr-xr-xtools/releasetools/img_from_target_files1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/releasetools/img_from_target_files b/tools/releasetools/img_from_target_files
index 08817ca..c5b9886 100755
--- a/tools/releasetools/img_from_target_files
+++ b/tools/releasetools/img_from_target_files
@@ -201,6 +201,7 @@ def main(argv):
if __name__ == '__main__':
try:
+ common.CloseInheritedPipes()
main(sys.argv[1:])
except common.ExternalError, e:
print