linux-container: Add comment on exception handling.

* gnu/build/linux-container.scm (run-container): Add note about writing
the exceptions.
This commit is contained in:
Ludovic Courtès 2017-02-04 18:14:12 +01:00
parent 168aba2978
commit 36c4917c91
No known key found for this signature in database
GPG key ID: 090B11993D9AEBB5

View file

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