Kernel bbclass "too many open files" bugfix
authorJader H. Silva <jader@2mi.com.br>
Thu, 12 Mar 2009 13:10:12 +0000 (10:10 -0300)
committerMarcin Juszkiewicz <hrw@openembedded.org>
Thu, 12 Mar 2009 16:26:15 +0000 (17:26 +0100)
commitbf59c40c3eccf42e098c7374e2bcfe7f2ec2f77d
tree54f4abe7f911025d9ab33bcb44c79ee430d19145
parent337be70ba5f4e1642680b154dea11fdb978bcc63
Kernel bbclass "too many open files" bugfix

tempfile.mkstemp() is used to create a temporary file. This function
return a tuple with an OS file descriptor and a filename. Filename is
stored in "tmpfile" but descriptor is not stored anywhere, but it is
still open because it's only an integer to python so it is not closed at
the end of the function.

For each iteration in which this function is called, a new OS file
descriptor is opened, but not closed. The solution is to store the file
descriptor and close it.
classes/kernel.bbclass