add -fPIC option to the C compiler, required in f31
[vsys.git] / fdwatcher.ml
index 95d4be4..6c30b08 100644 (file)
@@ -14,8 +14,7 @@ let add_fd (evpair:fname_and_fd) (fd_other:fname_and_fd) (callback:fname_and_fd-
     Hashtbl.replace cbtable fd (callback,(evpair,fd_other))
 
 let del_fd fd =
-  fdset:=List.filter (fun l->l<>fd) !fdset;
-  flush logfd
+  fdset:=List.filter (fun l->l<>fd) !fdset
 
 let start_watch () =
   while (true)
@@ -30,6 +29,6 @@ let start_watch () =
                        func evd fd_other
                      with e->
                        let wtf = Printexc.to_string e in
-                         fprintf logfd "%s\n" wtf
+                         logprint "%s\n" wtf
                 ) fds
   done