SpawnProcess: disable FD_CLOEXEC on stdout for #456296
authorFabian Groffen <grobian@gentoo.org>
Sat, 23 Mar 2013 21:59:58 +0000 (22:59 +0100)
committerZac Medico <zmedico@gentoo.org>
Sat, 23 Mar 2013 22:02:50 +0000 (15:02 -0700)
pym/_emerge/SpawnProcess.py

index 9155050aba5b2737f64783692b6eadfba3bdb99a..c54988446b623a037571cded675ca2009a3177c6 100644 (file)
@@ -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):
 
        """