diff options
Diffstat (limited to '')
| -rw-r--r-- | lib/kernel/Initialization.ml | 5 | ||||
| -rw-r--r-- | lib/kernel/Initialization.mli | 5 |
2 files changed, 4 insertions, 6 deletions
diff --git a/lib/kernel/Initialization.ml b/lib/kernel/Initialization.ml index 54bb76d..86c6882 100644 --- a/lib/kernel/Initialization.ml +++ b/lib/kernel/Initialization.ml @@ -20,12 +20,11 @@ let namespace entries = evaluators, and whatever else it registers beside them. *) let mount root name = match Path.lookup root Path.(name @/ this) with - | Ok mounted -> Ok mounted + | Ok mounted -> Ok (Protocols.Handle.release mounted) | Error _ -> let open Utilities.Result in let* mounted = namespace ["evaluator", Namespace.make ()] in - let* () = bind root (name, mounted) in - Ok mounted + bind root (name, mounted) module Make (S : Abstract.Storage.STORAGE) = struct module BM = BranchManager.Make (S) diff --git a/lib/kernel/Initialization.mli b/lib/kernel/Initialization.mli index a6e6ae0..02db00f 100644 --- a/lib/kernel/Initialization.mli +++ b/lib/kernel/Initialization.mli @@ -1,7 +1,6 @@ (** a subsystem's root, \[name], holding \[name]\evaluator for the - evaluators it registers. Mounting it again gives the one there. *) -val mount : - Protocols.Handle.t -> string -> (Protocols.Handle.t, Concepts.Condition.condition) result + evaluators it registers. Mounting it again keeps the one there. *) +val mount : Protocols.Handle.t -> string -> (unit, Concepts.Condition.condition) result module Make (S : Abstract.Storage.STORAGE) : sig (** the root of the object tree, holding \system: its branches, of |
