On Thu, Jun 07, 2012 at 06:42:24AM +0000, shawn wrote:
> Package: libncursesw5
> Version: 5.9-8
> Severity: important
> Tags: upstream
> 
> int main() {
>         struct pollfd myfds;
>         int ret;
> 
>         myfds.fd = 0;
>         myfds.events = POLLIN;
> 
>         ret = poll(&myfds, 1, 100);

Reflecting on it, the check relies on the given file-descriptor and timeout.
Standard input is not redirected.

The check does need a tty though (for Darwin).  The return-code for that might
be a -1 (making a comparison for that case more apt - will have to test).

Almost all of my build-logs (reviewing my build-logs, I see one out of ~60
combinations failing for Linux) for Linux show it working - probably depends
upon the environment.

> If i compile the C test myself, adding a printf at the end, ret==0 after the 
> poll().
> 
> The buildds are returning 
> 
> "checking if poll really works... no"
> 
> yet Linux's poll() is fine.

usually (I seem to recall that the original reason for testing poll vs
select was in fact a buggy implementation on Linux - that's been a while).

-- 
Thomas E. Dickey <dic...@invisible-island.net>
http://invisible-island.net
ftp://invisible-island.net

Attachment: signature.asc
Description: Digital signature

Reply via email to