diff options
author | Mathieu Lirzin <mthl@gnu.org> | 2016-11-02 21:54:04 +0100 |
---|---|---|
committer | Mathieu Lirzin <mthl@gnu.org> | 2016-11-03 00:20:27 +0100 |
commit | 12d71ee098c3eb84a9a5dc2419bd37a3b9e55dd2 (patch) | |
tree | 9c4170c7da0f4c5dc1aea171348da4a42801b571 /bin | |
parent | 5973db52c683a899ac8f1b517d6af14864f3a59b (diff) | |
download | cuirass-12d71ee098c3eb84a9a5dc2419bd37a3b9e55dd2.tar cuirass-12d71ee098c3eb84a9a5dc2419bd37a3b9e55dd2.tar.gz |
cuirass: Run HTTP server.
* src/cuirass.scm: Re-export (cuirass http) module.
* bin/cuirass.in (main): Run HTTP server and move the 'process-specs'
loop in another thread.
Diffstat (limited to 'bin')
-rw-r--r-- | bin/cuirass.in | 10 |
1 files changed, 7 insertions, 3 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)))))))))) |