From 36c4917c910f434524aae32725582d5bc51a44e0 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Ludovic=20Court=C3=A8s?= <ludo@gnu.org>
Date: Sat, 4 Feb 2017 18:14:12 +0100
Subject: [PATCH] linux-container: Add comment on exception handling.

* gnu/build/linux-container.scm (run-container): Add note about writing
the exceptions.
---
 gnu/build/linux-container.scm | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/gnu/build/linux-container.scm b/gnu/build/linux-container.scm
index cd712395272..dd56a792320 100644
--- a/gnu/build/linux-container.scm
+++ b/gnu/build/linux-container.scm
@@ -235,6 +235,8 @@ (define (run-container root mounts namespaces host-uids thunk)
                                                                namespaces)))
                     (lambda args
                       ;; Forward the exception to the parent process.
+                      ;; FIXME: SRFI-35 conditions and non-trivial objects
+                      ;; cannot be 'read' so they shouldn't be written as is.
                       (write args child)
                       (primitive-exit 3))))
                 ;; TODO: Manage capabilities.
-- 
GitLab