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'.
This commit is contained in:
Ludovic Courtès 2018-01-23 17:23:07 +01:00
parent f92ad7001f
commit 6822b4735f
1 changed files with 4 additions and 6 deletions

View File

@ -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)))))))