From 29334e191785bcef422e22887e0a68de0153ee32 Mon Sep 17 00:00:00 2001 From: Christopher Baines Date: Sun, 14 May 2023 12:15:17 +0100 Subject: Guard against logging failures in the output hash thread --- guix-build-coordinator/agent-messaging/http/server.scm | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'guix-build-coordinator/agent-messaging/http/server.scm') diff --git a/guix-build-coordinator/agent-messaging/http/server.scm b/guix-build-coordinator/agent-messaging/http/server.scm index 7efeec8..5e8467f 100644 --- a/guix-build-coordinator/agent-messaging/http/server.scm +++ b/guix-build-coordinator/agent-messaging/http/server.scm @@ -382,7 +382,12 @@ port. Also, the port used can be changed by passing the --port option.\n" (while #t (with-exception-handler (lambda (exn) - (log-msg logger 'ERROR "exception in output hash thread: " exn)) + (with-exception-handler + ;; Don't stop the thread, even if the logging fails + (const #t) + (lambda () + (log-msg logger 'ERROR "exception in output hash thread: " exn)) + #:unwind? #t)) (lambda () (display-info) -- cgit v1.2.3