Close /dev/null when finished.
authorZac Medico <zmedico@gentoo.org>
Sat, 17 Mar 2007 08:27:21 +0000 (08:27 -0000)
committerZac Medico <zmedico@gentoo.org>
Sat, 17 Mar 2007 08:27:21 +0000 (08:27 -0000)
svn path=/main/trunk/; revision=6231

pym/portage/tests/bin/setup_env.py

index 0d9b8bc7f8c4b276111c6b30e5e320183fd3a7a7..cde720d9972bfd028a7c6feba2bafcd1d8393af6 100644 (file)
@@ -49,6 +49,7 @@ def portage_func(func, args, exit_status=0):
        f = open('/dev/null', 'w')
        fd_pipes = {0:0,1:f.fileno(),2:f.fileno()}
        spawn(func+" "+args, env=os.environ, fd_pipes=fd_pipes)
+       f.close()
 
 def create_portage_wrapper(bin):
        def derived_func(*args):