smemcap: keep outputting by ignoring transient processes
No binary (build failed)
—
(log yok)
| @@ -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; | |