On Sat, Nov 6, 2010 at 3:43 PM, Philippe Strauss <philou@philou.ch> wrote:
still in my first cut at rpc, in my app I need to react on a file descriptor collectings logs for a child process, how do I transform

   let esys = Unixqueue.standard_event_system () in 
   [...]
   Unixqueue.run esys

to something where I can add an fd to the poll/select, and know which fd has triggered one run of the loop?

If I understand you correctly, you just want to watch an additional file descriptor and react when it becomes readable. You can do that by adding the fd to the event system with Unixqueue.add_resource, then attaching a handler for when the fd becomes readable with Unixqueue.add_handler. See the docs at

  http://projects.camlcity.org/projects/dl/ocamlnet-3.0.2/doc/html-main/Unixqueue.html

for more details.

Jake