From 11eb36d196c0dd1cd704050678c2baed927438e5 Mon Sep 17 00:00:00 2001 From: Fabian Groffen Date: Sat, 14 Mar 2009 12:08:49 +0000 Subject: [PATCH] disable the use of openpty on Solaris as it seems Python's openpty implementation doesn't play nice on Solaris with Portage's behaviour causing hangs/deadlocks svn path=/main/branches/prefix/; revision=13112 --- pym/portage/__init__.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/pym/portage/__init__.py b/pym/portage/__init__.py index 2a5248ff8..bee5d3554 100644 --- a/pym/portage/__init__.py +++ b/pym/portage/__init__.py @@ -3108,7 +3108,13 @@ def _shell_quote(s): # In some cases, openpty can be slow when it fails. Therefore, # stop trying to use it after the first failure. -_disable_openpty = False +if platform.system() in ["SunOS"]: + # disable the use of openpty on Solaris as it seems Python's openpty + # implementation doesn't play nice on Solaris with Portage's + # behaviour causing hangs/deadlocks. + _disable_openpty = True +else: + _disable_openpty = False def _create_pty_or_pipe(copy_term_size=None): """ -- 2.26.2