smemcap: keep outputting by ignoring transient processes, take two
authorDenys Vlasenko <vda.linux@googlemail.com>
Thu, 30 Aug 2018 09:49:51 +0000 (11:49 +0200)
committerDenys Vlasenko <vda.linux@googlemail.com>
Thu, 30 Aug 2018 09:49:51 +0000 (11:49 +0200)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
procps/smemcap.c

index 96b565f591db94fb6ced45183275758ef57da290..2f8ab192e2101c8445cee79c9299534d3b482ed1 100644 (file)
@@ -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;