You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@apr.apache.org by Henry Jen <he...@ztune.net> on 2007/11/02 19:44:19 UTC

[PATCH] apr_poll[set|cb]_remove should returns APR_SUCCESS instead of APR_NOTFOUND with testpoll

Hi,

Attached is a fix for the poll implementation on Solaris using port. The 
issue is that when calling port_dissociate with a file descriptor has 
not been associated, port_dissociate will return -1 and set errno to ENOENT.

The apr_pollcb_poll should also re-associate the fd with port.

Per the man page for port_dissociate:
> The port_dissociate() function will fail if:
>
>      EACCES    The process is not the owner of the association.
>
>
>      ENOENT    The specified object is not  associated  with  the
>                port.

Cheers,
Henry