aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--bin/cuirass.in10
-rw-r--r--src/cuirass.scm3
2 files changed, 9 insertions, 4 deletions
diff --git a/bin/cuirass.in b/bin/cuirass.in
index ced9c54..a5a11b6 100644
--- a/bin/cuirass.in
+++ b/bin/cuirass.in
@@ -85,6 +85,10 @@ exec ${GUILE:-@GUILE@} --no-auto-compile -e main -s "$0" "$@"
new-specs)))
(if one-shot?
(process-specs db (db-get-specifications db))
- (while #t
- (process-specs db (db-get-specifications db))
- (sleep interval))))))))))
+ (begin
+ (call-with-new-thread
+ (λ ()
+ (while #t
+ (process-specs db (db-get-specifications db))
+ (sleep interval))))
+ (run-cuirass-server db))))))))))
diff --git a/src/cuirass.scm b/src/cuirass.scm
index 35bea44..8d729b8 100644
--- a/src/cuirass.scm
+++ b/src/cuirass.scm
@@ -30,4 +30,5 @@
(for-each (λ (m) (module-use! i (resolve-interface m)))
;; Public modules.
'((cuirass base)
- (cuirass database)))))
+ (cuirass database)
+ (cuirass http)))))