OSDN Git Service

Close inherited PIPE before doing work
authorYing Wang <wangying@google.com>
Tue, 14 Dec 2010 00:25:36 +0000 (16:25 -0800)
committerYing Wang <wangying@google.com>
Thu, 10 Feb 2011 19:36:43 +0000 (11:36 -0800)
commit7e6d4e45d92fd51f42812ae63ac6e532887bfe0a
tree74e305fd1282454dc82c707ae3e78c45a1940536
parent4a2ecaf5dc7434dd06a1fbcf14c56e6a7c7b383b
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
tools/releasetools/common.py
tools/releasetools/img_from_target_files
tools/releasetools/ota_from_target_files