From e43524dc88774f768441dcb386a534166a53f7fa Mon Sep 17 00:00:00 2001 From: Fabian Groffen Date: Sat, 23 Mar 2013 22:59:58 +0100 Subject: [PATCH] SpawnProcess: disable FD_CLOEXEC on stdout for #456296 --- pym/_emerge/SpawnProcess.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pym/_emerge/SpawnProcess.py b/pym/_emerge/SpawnProcess.py index 9155050ab..c54988446 100644 --- a/pym/_emerge/SpawnProcess.py +++ b/pym/_emerge/SpawnProcess.py @@ -14,6 +14,12 @@ from portage import os from portage.const import BASH_BINARY from portage.util._async.PipeLogger import PipeLogger +# https://bugs.gentoo.org/show_bug.cgi?id=456296 +import platform +if platform.system() in ("Darwin",): + # disable FD_CLOEXEC on stdout, breaks horribly + fcntl = None + class SpawnProcess(SubProcess): """ -- 2.26.2