Gentoo Logo
Gentoo Spaceship




Note: Due to technical difficulties, the Archives are currently not up to date. GMANE provides an alternative service for most mailing lists.
c.f. bug 424647
List Archive: gentoo-portage-dev
Navigation:
Lists: gentoo-portage-dev: < Prev By Thread Next > < Prev By Date Next >
Headers:
To: gentoo-portage-dev@g.o
From: Michael Haubenwallner <haubi@g.o>
Subject: Re: EbuildProcess logs poll-error to already removed $T (on AIX)
Date: Mon, 28 Mar 2011 12:05:55 +0200

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
>>> dir(select)
['PIPE_BUF', 'POLLERR', 'POLLHUP', 'POLLIN', 'POLLMSG', 'POLLNVAL', 'POLLOUT',
'POLLPRI', 'POLLRDBAND', 'POLLRDNORM', 'POLLWRBAND', 'POLLWRNORM', '__doc__',
'__file__', '__name__', '__package__', 'error', 'poll', 'select']
>>> select.POLLNVAL
32768
>>> select.POLLERR
16384

On AIX 6.1 it looks similar except for missing 'PIPE_BUF'.

> This will handle the IOError:
> http://git.overlays.gentoo.org/gitweb/?p=proj/portage.git;a=commit;h=0a64f784003c11e151405b7f708d77770de0ed57

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?

Thank you!
/haubi/
-- 
Michael Haubenwallner
Gentoo on a different level


Replies:
Re: EbuildProcess logs poll-error to already removed $T (on AIX)
-- Zac Medico
References:
EbuildProcess logs poll-error to already removed $T (on AIX)
-- Michael Haubenwallner
Re: EbuildProcess logs poll-error to already removed $T (on AIX)
-- Zac Medico
Navigation:
Lists: gentoo-portage-dev: < Prev By Thread Next > < Prev By Date Next >
Previous by thread:
Re: EbuildProcess logs poll-error to already removed $T (on AIX)
Next by thread:
Re: EbuildProcess logs poll-error to already removed $T (on AIX)
Previous by date:
Re: EbuildProcess logs poll-error to already removed $T (on AIX)
Next by date:
Re: EbuildProcess logs poll-error to already removed $T (on AIX)


Updated Jun 13, 2012

Summary: Archive of the gentoo-portage-dev mailing list.

Donate to support our development efforts.

Copyright 2001-2013 Gentoo Foundation, Inc. Questions, Comments? Contact us.