apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Henry Jen <henry...@ztune.net>
Subject [PATCH] apr_poll[set|cb]_remove should returns APR_SUCCESS instead of APR_NOTFOUND with testpoll
Date Fri, 02 Nov 2007 18:44:19 GMT

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.


View raw message