1 |
Author: grobian |
2 |
Date: 2009-10-07 19:19:22 +0000 (Wed, 07 Oct 2009) |
3 |
New Revision: 14514 |
4 |
|
5 |
Modified: |
6 |
main/branches/prefix/pym/portage/__init__.py |
7 |
Log: |
8 |
haubi reported that openpty no longer works on AIX either, so let's finish this and don't do openpty on non-Linux any more. Will port this to trunk. |
9 |
|
10 |
Modified: main/branches/prefix/pym/portage/__init__.py |
11 |
=================================================================== |
12 |
--- main/branches/prefix/pym/portage/__init__.py 2009-10-07 19:14:00 UTC (rev 14513) |
13 |
+++ main/branches/prefix/pym/portage/__init__.py 2009-10-07 19:19:22 UTC (rev 14514) |
14 |
@@ -3868,14 +3868,18 @@ |
15 |
|
16 |
# In some cases, openpty can be slow when it fails. Therefore, |
17 |
# stop trying to use it after the first failure. |
18 |
-if platform.system() in ["SunOS", "Darwin"]: |
19 |
- # disable the use of openpty on Solaris as it seems Python's openpty |
20 |
+if platform.system() not in ["Linux"]: |
21 |
+ # Disable the use of openpty on Solaris as it seems Python's openpty |
22 |
# implementation doesn't play nice on Solaris with Portage's |
23 |
# behaviour causing hangs/deadlocks. |
24 |
- # disable on Darwin also, it used to work fine, but since the |
25 |
+ # Disable on Darwin also, it used to work fine, but since the |
26 |
# introduction of _test_pty_eof Portage hangs (on the |
27 |
# slave_file.close()) indicating some other problems with openpty on |
28 |
# Darwin there |
29 |
+ # On AIX, haubi reported that the openpty code doesn't work any |
30 |
+ # longer since the introduction of _test_pty_eof either. |
31 |
+ # Looks like Python's openpty module is too fragile to use on UNIX, |
32 |
+ # so only use it on Linux |
33 |
_disable_openpty = True |
34 |
else: |
35 |
_disable_openpty = False |