← Commit list

9a2621a3b

Andre Goddard Rosa
Andre Goddard Rosa
2018-08-26
SUCCESS Duration: 147s

Subject

smemcap: keep outputting by ignoring transient processes

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

procps/smemcap.c+4 -0
@@ -66,6 +66,10 @@ static void archivefile(const char *path)
/* buffer the file */
fd = xopen(path, O_RDONLY);
+ if (fd == -1) {
+ /* skip vanished processes between dir listing and traversal */
+ return;
+ }
do {
cur = xzalloc(sizeof(*cur));
*prev = cur;