X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=daemons%2FproofChecker%2FproofChecker.ml;h=1b3661e3471dcdb262f4da1dd19fe5f82bb3c125;hb=b1653b6c1008bb99ee91dcf4f075711f4cbaffa4;hp=c4a6391ccb0a8138c54ba2e677a31b12e31e0a66;hpb=5740d19b557e3ebef620017bbd85bdea22dda28c;p=helm.git diff --git a/daemons/proofChecker/proofChecker.ml b/daemons/proofChecker/proofChecker.ml index c4a6391cc..1b3661e34 100644 --- a/daemons/proofChecker/proofChecker.ml +++ b/daemons/proofChecker/proofChecker.ml @@ -92,7 +92,7 @@ let _ = flush !outchan) ;; -let callback ((req : Http_types.request), outchan') = +let callback (req : Http_types.request) outchan' = match req#path with | "/proofCheck" -> begin @@ -125,16 +125,11 @@ let callback ((req : Http_types.request), outchan') = in -let callback req ch = - HExtlib.finally - (fun () -> try close_out ch with Sys_error _ -> ()) - callback (req, ch) - -in printf "Proof Checker started and listening on port %d\n" port; flush stdout; CicEnvironment.set_trust (fun _ -> false); -Http_daemon.start' ~port ~mode:`Fork callback ; +let d_spec = Http_daemon.daemon_spec ~port ~mode:`Fork ~callback ~auto_close:true () in +Http_daemon.main d_spec; printf "Proof Checker is terminating, bye!\n"