From: Fabian Groffen Date: Sat, 14 Mar 2009 12:08:49 +0000 (-0000) Subject: disable the use of openpty on Solaris as it seems Python's openpty implementation... X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=11eb36d196c0dd1cd704050678c2baed927438e5;p=portage.git 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 --- 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): """