Process monitor written in OCaml