mirror of
https://github.com/mirage/qubes-mirage-firewall.git
synced 2025-09-20 12:54:41 -04:00
Split database access into its own module
This commit is contained in:
parent
914b6bbbf6
commit
f3332ed4da
5 changed files with 158 additions and 79 deletions
|
@ -37,8 +37,7 @@ module Main (Clock : V1.CLOCK) = struct
|
|||
(* Watch for shutdown requests from Qubes *)
|
||||
let shutdown_rq = OS.Lifecycle.await_shutdown () >|= function `Poweroff | `Reboot -> () in
|
||||
(* Set up networking *)
|
||||
OS.Xs.make () >>= fun xs ->
|
||||
let net = N.connect ~xs qubesDB in
|
||||
let net = N.connect qubesDB in
|
||||
(* Run until something fails or we get a shutdown request. *)
|
||||
Lwt.choose [agent_listener; net; shutdown_rq] >>= fun () ->
|
||||
(* Give the console daemon time to show any final log messages. *)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue