apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paul Querna <c...@force-elite.com>
Subject Re: Poll() problem
Date Sat, 05 Jun 2004 07:44:35 GMT
On Sat, 2004-06-05 at 06:33 +0100, Damir Dezeljin wrote:
> Hi.
> 
> I would like to use poll() functions to check for available data on read
> part of a pipe to avoid blocked read. Unfortunately I can't get it
> working. When executing an apr_pollset_add(), I always get 'Bad file
> descriptor' error.
>
> So I created a simplest pice of code and tried with it. Unfortunately also
> it doesn't work. Do anyone have a clue what is going on (what I made wrong
> ? :) ):

I have made a simple complete example(see attached) using apr_pollset.
It seems to operate perfectly fine on FreeBSD 5.2-Current.  From what
you posted, I didn't see anything wrong with your code.

-Paul Querna

Mime
View raw message