On 03/25/2011 05:23 PM, Zac Medico wrote:
>> * EbuildProcess received strange poll event: 16384
> You can compare 16384 to the values of POLLERR and POLLNVAL in order to
> see what type of event it is. Apparently the values on AIX are different
> from those on Linux, because here's what I see on Linux:
On AIX 5.3 this is:
Python 2.7.1 (r271:86832, Feb 28 2011, 17:51:02)
[GCC 4.2.4 (Gentoo 4.2.4-r01.2 p1.1)] on aix5
Type "help", "copyright", "credits" or "license" for more information.
>>> import select
['PIPE_BUF', 'POLLERR', 'POLLHUP', 'POLLIN', 'POLLMSG', 'POLLNVAL', 'POLLOUT',
'POLLPRI', 'POLLRDBAND', 'POLLRDNORM', 'POLLWRBAND', 'POLLWRNORM', '__doc__',
'__file__', '__name__', '__package__', 'error', 'poll', 'select']
On AIX 6.1 it looks similar except for missing 'PIPE_BUF'.
> This will handle the IOError:
Yes, that makes it work, thank you!
> It might be risky to skip logging of the POLLNVAL / POLLERR events, so
> hopefully we can determine their cause and handle them somehow. Do they
> seem to cause any problems? It might be something specific about pty
> devices on AIX.
There doesn't seem to go anything wrong so far.
I've no idea about programming with pty devices at all.
However, one relevant (IMHO) thing I can see is:
portage/util/_pty.py:_can_test_pty_eof() returns True for Linux only.
Anything I can try out?
Gentoo on a different level