Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 15 Jun 2005 21:11:06 +0800
From:      David Xu <davidxu@freebsd.org>
To:        Luigi Rizzo <rizzo@icir.org>
Cc:        current@freebsd.org
Subject:   Re: bug or feature in userland thread library (O_NONBLOCK)
Message-ID:  <42B028EA.2020901@freebsd.org>
In-Reply-To: <20050615025447.A62971@xorpc.icir.org>
References:  <20050615025447.A62971@xorpc.icir.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Luigi Rizzo wrote:

>Probably a known issue, but I thought it worthwhile reporting it,
>if nothing else for archival purposes.
>
>I think our userland thread library (libc_r) has some bugs in
>handling descriptors.  I can reproduce the behaviour on -current
>and 4.x, and I believe it applies to 5.x too.  
>
>Following is a description of the problem and some code to replicate it
>The code includes a workaround but it is not particularly nice.
>
>Any better ideas ? I am not sure on what to do, but perhaps the
>only sensible thing to do is to add a note with this workaround
>(or better ones, if available) to our pthreads manpage
>
>  
>
libc_r is deprecated on -CURRENT,  I think start from 6.0, libc_r really
should be moved to ports. ;)

David Xu




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?42B028EA.2020901>