← Back to team overview

marionnet-dev team mailing list archive

[Branch ~marionnet-drivers/ocamlbricks/trunk] Rev 496: Added function Linux.watch_directory that waits until something happen (by default a `close_write...

 

------------------------------------------------------------
revno: 496
committer: Jean-Vincent Loddo <loddo@xxxxxxxxxxxxxxxxxxxx>
branch nick: ocamlbricks
timestamp: Wed 2020-04-01 16:53:12 +0200
message:
  Added function Linux.watch_directory that waits until something happen (by default a `close_write' event) in a directory. Implemented as passive waiting based on Inotify. This function never raises exceptions except Invalid_argument at starting if the provided directory does not exist. The function simply returns when the directory does not exist anymore or when the optional argument ?exit_door is set up and the provided filename is written. Also, changed the name of function `wait_process' to `watch_process' for uniformity.
modified:
  EXTRA/threadExtra.mli
  SHELL/linux.ml
  SHELL/linux.mli


--
lp:ocamlbricks
https://code.launchpad.net/~marionnet-drivers/ocamlbricks/trunk

Your team marionnet-dev is subscribed to branch lp:ocamlbricks.
To unsubscribe from this branch go to https://code.launchpad.net/~marionnet-drivers/ocamlbricks/trunk/+edit-subscription