Re: Signals, sockets and threads

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Guilhem Lavaux wrote:
> Hi Robert,
> 
> You are using tmp_errno = errno... ret is precisely holding errno. I

Nope. 'ret' contains the return value of 'accept', which is not the same
as 'errno'.

> have built the native-lib so that we are always thread safe. I have not
> noticed that VMChannel is so native-lib agnostic. ;-) I will have to
> rewrite VMChannel... Probably next weeks will be devoted to this.
> 

Why does NIO need to use the native-lib way at all? What, pray tell, is
wrong with the POSIX way of doing things?

Please don't rewrite VMChannel. If accessing 'errno' is not thread safe
on some platforms (I think on Linux and Darwin it should be thread safe)
then we should work around that.

> In respect to this buggy interface, it is ok. :)
> 

I fail to see why this is buggy.


[Index of Archives]     [Linux Kernel]     [Linux Cryptography]     [Fedora]     [Fedora Directory]     [Red Hat Development]

  Powered by Linux