@@ -, +, @@ unshare). --- pym/portage/process.py | 6 ++++++ 1 file changed, 6 insertions(+) --- a/pym/portage/process.py +++ a/pym/portage/process.py @@ -279,6 +279,12 @@ def spawn(mycommand, env={}, opt_name=None, fd_pipes=None, returnpid=False, fd_pipes[1] = pw fd_pipes[2] = pw + # This caches the libc library lookup in the current + # process, so that it's only done once rather than + # for each child process. + if unshare_net: + find_library("c") + parent_pid = os.getpid() pid = None try: --