~ruther/guix-local

9b0713012905f3997d6fad201dba7c3d93b38b13 — Ludovic Courtès 8 years ago 5c22f37
list-runtime-roots: Ignore ESRCH while reading from /proc.

Fixes <https://bugs.gnu.org/29368>.
Reported by Martin Castillo <castilma@uni-bremen.de>.

* nix/scripts/list-runtime-roots.in (referenced-files): Ignore ESRCH.
1 files changed, 1 insertions(+), 0 deletions(-)

M nix/scripts/list-runtime-roots.in
M nix/scripts/list-runtime-roots.in => nix/scripts/list-runtime-roots.in +1 -0
@@ 121,6 121,7 @@ or the empty list."
                    (lambda args
                      (let ((err (system-error-errno args)))
                        (if (or (= ENOENT err)    ;TOCTTOU race
                                (= ESRCH err)     ;ditto
                                (= EACCES err))   ;not running as root
                            '()
                            (apply throw args)))))))