From: Fabian Groffen Date: Sat, 23 Mar 2013 21:59:58 +0000 (+0100) Subject: SpawnProcess: disable FD_CLOEXEC on stdout for #456296 X-Git-Tag: v2.2.0_alpha170~10 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=e43524dc88774f768441dcb386a534166a53f7fa;p=portage.git SpawnProcess: disable FD_CLOEXEC on stdout for #456296 --- 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): """