Commit fa3ecdd9 authored by Martti Mela's avatar Martti Mela

OSX runloop: su_port_osx_eventmask() sets now mask for CFSocket, too

darcs-hash:20061017082401-1b897-5ec3b060f5d2efd1aa8855d27561ee1ff38837e1.gz
parent 698a1637
......@@ -1306,7 +1306,7 @@ int su_port_osx_unregister_all(su_port_t *self,
*/
int su_port_osx_eventmask(su_port_t *self, int index, int socket, int events)
{
int n;
int n, ret;
assert(self);
assert(SU_PORT_OSX_OWN_THREAD(self));
......@@ -1317,7 +1317,12 @@ int su_port_osx_eventmask(su_port_t *self, int index, int socket, int events)
if (n < 0)
return su_seterrno(EBADF);
return su_wait_mask(&self->sup_waits[n], socket, events);
ret = su_wait_mask(&self->sup_waits[n], socket, events);
CFSocketSetSocketFlags(self->sup_sockets[n],
map_poll_event_to_cf_event(events));
return ret;
}
/** @internal
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment