_exec: close socket
authorZac Medico <zmedico@gentoo.org>
Sun, 18 Aug 2013 06:03:47 +0000 (23:03 -0700)
committerZac Medico <zmedico@gentoo.org>
Sun, 18 Aug 2013 06:03:47 +0000 (23:03 -0700)
pym/portage/process.py

index a7464c71d74ec40bf61af127f859659edc673538..6a60dec553cb09ecd003f1f6d82079c1a9d45df9 100644 (file)
@@ -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