From e1e256c85dfa3bd4e8b3564fb1391ca0f3d277a4 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Sat, 17 Aug 2013 23:03:47 -0700 Subject: [PATCH] _exec: close socket --- pym/portage/process.py | 1 + 1 file changed, 1 insertion(+) diff --git a/pym/portage/process.py b/pym/portage/process.py index a7464c71d..6a60dec55 100644 --- a/pym/portage/process.py +++ b/pym/portage/process.py @@ -455,6 +455,7 @@ def _exec(binary, mycommand, opt_name, fd_pipes, env, gid, groups, uid, umask, writemsg("Unable to enable loopback interface: %s\n" % ( errno.errorcode.get(e.errno, '?')), noiselevel=-1) + sock.close() except AttributeError: # unshare() not supported by libc pass -- 2.26.2