smemcap: keep outputting by ignoring transient processes, take two

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
Denys Vlasenko 2018-08-30 11:49:51 +02:00
parent 9a2621a3b9
commit 270becc240

View File

@ -65,7 +65,7 @@ static void archivefile(const char *path)
struct stat s; struct stat s;
/* buffer the file */ /* buffer the file */
fd = xopen(path, O_RDONLY); fd = open(path, O_RDONLY);
if (fd == -1) { if (fd == -1) {
/* skip vanished processes between dir listing and traversal */ /* skip vanished processes between dir listing and traversal */
return; return;