X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=fdwatcher.ml;h=3453d54f78e16238dc93bb8d2addbcb074c2c80c;hb=64fec94ca5bdf716a1a600579fb72cde60c9148a;hp=f520aadab9278126ced8d6a26cb5edd711c4242f;hpb=8ed94d4c37a320acc03f1f3f6523201b42202f00;p=vsys.git diff --git a/fdwatcher.ml b/fdwatcher.ml index f520aad..3453d54 100644 --- a/fdwatcher.ml +++ b/fdwatcher.ml @@ -1,4 +1,4 @@ -(* Fdwatcher - The main event loop. Agnostic to the type of file descriptors +(** Fdwatcher - The main event loop. Agnostic to the type of file descriptors involved.*) open Printf @@ -18,7 +18,7 @@ let add_fd (evpair:fname_and_fd) (fd_other:fname_and_fd) (callback:fname_and_fd- let del_fd fd = fdset:=List.filter (fun l->l<>fd) !fdset; - flush Pervasives.stdout + flush logfd let start_watch () = while (true) @@ -31,4 +31,3 @@ let start_watch () = let (func,(evd,fd_other)) = Hashtbl.find cbtable elt in func evd fd_other) fds done -