From 270becc2409e7b4c4e83b3f3272ff28d30805c55 Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Thu, 30 Aug 2018 11:49:51 +0200 Subject: [PATCH] smemcap: keep outputting by ignoring transient processes, take two Signed-off-by: Denys Vlasenko --- procps/smemcap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/procps/smemcap.c b/procps/smemcap.c index 96b565f59..2f8ab192e 100644 --- a/procps/smemcap.c +++ b/procps/smemcap.c @@ -65,7 +65,7 @@ static void archivefile(const char *path) struct stat s; /* buffer the file */ - fd = xopen(path, O_RDONLY); + fd = open(path, O_RDONLY); if (fd == -1) { /* skip vanished processes between dir listing and traversal */ return;