diff options
author | Symphorien Gibol <symphorien+git@xlumurb.eu> | 2018-06-16T16·04+0200 |
---|---|---|
committer | Symphorien Gibol <symphorien+git@xlumurb.eu> | 2018-06-16T16·04+0200 |
commit | ef8122064baf54c37a8fe15e78b9da7c5180bbe6 (patch) | |
tree | ce81e190dd8f7c1bf6f149afb3b5faf7f0d6b5f3 /src/libstore | |
parent | 8c567afe355dff8cb86dd15c94755eb6500f48cd (diff) |
libstore/gc.cc: ignore ESRCH when reading symlinks in /proc
readlink is also affected by the problem fixed for regular files in c567afe355df
Diffstat (limited to 'src/libstore')
-rw-r--r-- | src/libstore/gc.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstore/gc.cc b/src/libstore/gc.cc index 233a70bd2d2a..40b4f965f253 100644 --- a/src/libstore/gc.cc +++ b/src/libstore/gc.cc @@ -365,7 +365,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"); } |