about summary refs log tree commit diff
path: root/src/libstore
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2018-06-18T07·01+0200
committerGitHub <noreply@github.com>2018-06-18T07·01+0200
commit2e244fb68fc222dbca99572f5cfdea5619225a21 (patch)
tree78ad93c376b3a8da62a31ffd8584f662d8268548 /src/libstore
parentd73e881c81a8bf0522fbd026ddf44a7e1adcb81f (diff)
parentef8122064baf54c37a8fe15e78b9da7c5180bbe6 (diff)
Merge pull request #2234 from symphorien/esrch2
libstore/gc.cc: ignore ESRCH when reading symlinks in /proc
Diffstat (limited to 'src/libstore')
-rw-r--r--src/libstore/gc.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstore/gc.cc b/src/libstore/gc.cc
index b5020a506beb..b415d5421476 100644
--- a/src/libstore/gc.cc
+++ b/src/libstore/gc.cc
@@ -366,7 +366,7 @@ try_again:
     char buf[bufsiz];
     auto res = readlink(file.c_str(), buf, bufsiz);
     if (res == -1) {
-        if (errno == ENOENT || errno == EACCES)
+        if (errno == ENOENT || errno == EACCES || errno == ESRCH)
             return;
         throw SysError("reading symlink");
     }