X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;ds=sidebyside;f=helm%2Fsoftware%2Fdaemons%2FproofChecker%2FproofChecker.ml;h=2928cf6484b4a85ea0daefe48d36aab6261fa305;hb=57ae1762497a5f3ea75740e2908e04adb8642cc2;hp=e4f00fe3acf86c989b4e250af89000fda4942206;hpb=76ad23ea1e83e8c187a4593027e9baed1bb022e3;p=helm.git diff --git a/helm/software/daemons/proofChecker/proofChecker.ml b/helm/software/daemons/proofChecker/proofChecker.ml index e4f00fe3a..2928cf648 100644 --- a/helm/software/daemons/proofChecker/proofChecker.ml +++ b/helm/software/daemons/proofChecker/proofChecker.ml @@ -107,7 +107,8 @@ let callback (req : Http_types.request) outchan' = fprintf outchan' "%s" (html_preamble uri); flush outchan'; (try - ignore (CicTypeChecker.typecheck (UriManager.uri_of_string uri)); + ignore (CicTypeChecker.typecheck ~trust:false + (UriManager.uri_of_string uri)); with e -> fprintf outchan' "%s\n" (Printexc.to_string e); flush outchan'); @@ -125,9 +126,11 @@ let callback (req : Http_types.request) outchan' = 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"