-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Fabian Groffen wrote:
> On 25-05-2007 15:04:24 +0200, Fabian Groffen wrote:
> ...
>> raise an exception on the pty code, but only bails out on the
>> termios.tcgetattr function because it gets an "invalid argument".
> 
> from the code pym/portage/__init__.py around line 2288
> 
>                 from pty import openpty
>                 master_fd, slave_fd = openpty()
>                 # Disable the ECHO attribute so the terminal behaves properly
>                 # if the subprocess needs to read input from stdin.
>                 import termios
>                 term_attr = termios.tcgetattr(master_fd)
>                 term_attr[3] &= ~termios.ECHO
>                 termios.tcsetattr(master_fd, termios.TCSAFLUSH, term_attr)
> 
> if I comment out the complete termios (last four lines) it appears to
> work, though I don't know what repercussions this has on the rest of the
> code.  Judging from the comment, it feels not so right.
> 

Try replacing master_fd with slave_fd in both the tcgetattr and
tcsetattr calls.  I'm not sure if that will solve it but it's worth
a try.

Zac
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.4 (GNU/Linux)

iD8DBQFGVzyJ/ejvha5XGaMRAgSRAJ9ugQK2FX4wKdbMjzUzvbyyjN/fsQCdE+EF
lWenpj4ZAfWQ15Pq2pCwLp4=
=Rl1X
-----END PGP SIGNATURE-----
-- 
[EMAIL PROTECTED] mailing list

Reply via email to