select_attach in resmgr

Hi,

In my “io_open” handler is:

int my_select_func( select_context_t *ctp, int fd, unsigned flags, void *handle ) {
puts(“select event”);
return 0;
}

io_open(resmgr_context_t *ctp,…){
my_ocb_t *o=mallco(sizeof *o);
o->fd=socket(…);
select_attach (ctp->dpp, &o->select_attr,
o->fd, SELECT_FLAG_READ|SELECT_FLAG_WRITE|SELECT_FLAG_EXCEPT,
my_select_func, o);
return 0;
}

Why does select events not occur on my socket when IO operations occurs on it ?
May be _RESMGR_FLAG_SELF is needed to register resmgr ?
Or any reasons ?
Explain me, please.

Or it may be another mechanism to get select events ?


Respectfully Yours,
Vasilii