summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2018-01-23 17:23:07 +0100
committerLudovic Courtès <ludo@gnu.org>2018-01-23 17:23:07 +0100
commit6822b4735ffd3b1c9f1b93d9b3dd45d85ed15380 (patch)
tree1fe2fc5bfc892a2d8b853e0cca9d30ee58a1abe3 /bin
parentf92ad7001fc9c17edcbe2c28705d6e15b88c63da (diff)
downloadcuirass-6822b4735ffd3b1c9f1b93d9b3dd45d85ed15380.tar
cuirass-6822b4735ffd3b1c9f1b93d9b3dd45d85ed15380.tar.gz
Call 'run-cuirass-server' outside of a fiber.
This seems to fix a bug whereby the server would never process the FD returned by 'accept'. * bin/cuirass.in (main): Move 'run-cuirass-server' outside of 'spawn-fiber'.
Diffstat (limited to 'bin')
-rw-r--r--bin/cuirass.in10
1 files changed, 4 insertions, 6 deletions
diff --git a/bin/cuirass.in b/bin/cuirass.in
index 725712d..4553567 100644
--- a/bin/cuirass.in
+++ b/bin/cuirass.in
@@ -115,12 +115,10 @@ exec ${GUILE:-@GUILE@} --no-auto-compile -e main -s "$0" "$@"
(process-specs db (db-get-specifications db))
(log-message "sleeping for ~a seconds" interval)
(sleep interval)))))
- (spawn-fiber
- (lambda ()
- (with-database db
- (run-cuirass-server db
- #:host host
- #:port port))))
+ (with-database db
+ (run-cuirass-server db
+ #:host host
+ #:port port))
*unspecified*))))
#:drain? #t)))))))