harmony-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Geir Magnusson Jr." <g...@pobox.com>
Subject Re: [classlib][luni] signalis interruptus in hysock
Date Fri, 20 Oct 2006 03:59:45 GMT


Ivan Volosyuk wrote:
> Why not? I understand your opinion, that EINTR should be handled in
> upper layers. But here we have somewhat buggy (strange) implementation
> specifics of select() and similar calls.

There's nothing buggy about it - it's working exactly as it's supposed to.

> Good functions like read() and write() and so on doesn't interrupt
> with SA_RESTART system calls, but select() does. 

And that's clearly defined in the API - it's not a bug.  It's stupid, 
but not a bug :)

> I think it is low
> level issue and should be handled in the same low level layer.
> Handling it in upper layer may cause hard to detect bugs in that
> implementations.

Why?  It's a perfectly valid return value.

> There are issues with timeout handling here to maintain platform
> independence (Linux implementation is different then POSIX, AFAIK),
> but it can be solved with minor performance decrease.
> -- 
> Ivan
> 
> On 10/18/06, Geir Magnusson Jr. <geir@pobox.com> wrote:
>> Thanks, but we're not going to eat EINTR....
>>
>> Artem Aliev wrote:
>> > Geir,
>> >
>> > I create HARMONY-1904 issue for this case.
>> >
>> > Thanks
>> > Artem
> 
> ---------------------------------------------------------------------
> Terms of use : http://incubator.apache.org/harmony/mailing.html
> To unsubscribe, e-mail: harmony-dev-unsubscribe@incubator.apache.org
> For additional commands, e-mail: harmony-dev-help@incubator.apache.org
> 

---------------------------------------------------------------------
Terms of use : http://incubator.apache.org/harmony/mailing.html
To unsubscribe, e-mail: harmony-dev-unsubscribe@incubator.apache.org
For additional commands, e-mail: harmony-dev-help@incubator.apache.org


Mime
View raw message