tools/ocaml/xenstored: drop select based socket watching
authorEdwin Török <edvin.torok@citrix.com>
Mon, 17 Aug 2020 18:45:47 +0000 (19:45 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Tue, 18 Aug 2020 16:34:50 +0000 (17:34 +0100)
commit80a868f0f6ccffee5843cbf1ad880ffcb76267a2
tree42583b4af13ee90fb002fe04137608c7979bded5
parentba02a2cd1c2e87203117f2fe920c2115a121dbbc
tools/ocaml/xenstored: drop select based socket watching

Poll has been the default since 2014, I think we can safely say by now
that poll() works and we don't need to fall back to select().

This will allow fixing up the way we call poll to be more efficient
(and pave the way for introducing epoll support):
currently poll wraps the select API, which is inefficient.

Signed-off-by: Edwin Török <edvin.torok@citrix.com>
Acked-by: Christian Lindig <christian.lindig@citrix.com>
tools/ocaml/xenstored/Makefile
tools/ocaml/xenstored/parse_arg.ml
tools/ocaml/xenstored/poll.ml [new file with mode: 0644]
tools/ocaml/xenstored/poll.mli [new file with mode: 0644]
tools/ocaml/xenstored/select.ml [deleted file]
tools/ocaml/xenstored/select.mli [deleted file]
tools/ocaml/xenstored/xenstored.ml