diff options
author | Ron Yorston <rmy@pobox.com> | 2018-09-10 14:37:07 +0100 |
---|---|---|
committer | Ron Yorston <rmy@pobox.com> | 2018-09-10 14:59:33 +0100 |
commit | d89ced75b204f0eb5611f522864beb81d1b393f5 (patch) | |
tree | 5daa31427e287fe079a0ef551097753773fdb266 /procps/smemcap.c | |
parent | f72845d9332fa6311a46dbcad3180d5008182982 (diff) | |
parent | 05b18065ab9c375f6185b65a3631d4c6cc1a4be9 (diff) | |
download | busybox-w32-d89ced75b204f0eb5611f522864beb81d1b393f5.tar.gz busybox-w32-d89ced75b204f0eb5611f522864beb81d1b393f5.tar.bz2 busybox-w32-d89ced75b204f0eb5611f522864beb81d1b393f5.zip |
Merge branch 'busybox' into merge
Diffstat (limited to 'procps/smemcap.c')
-rw-r--r-- | procps/smemcap.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/procps/smemcap.c b/procps/smemcap.c index f2e2de29d..01acbf74e 100644 --- a/procps/smemcap.c +++ b/procps/smemcap.c | |||
@@ -66,7 +66,11 @@ static void archivefile(const char *path) | |||
66 | struct stat s; | 66 | struct stat s; |
67 | 67 | ||
68 | /* buffer the file */ | 68 | /* buffer the file */ |
69 | fd = xopen(path, O_RDONLY); | 69 | fd = open(path, O_RDONLY); |
70 | if (fd == -1) { | ||
71 | /* skip vanished processes between dir listing and traversal */ | ||
72 | return; | ||
73 | } | ||
70 | do { | 74 | do { |
71 | cur = xzalloc(sizeof(*cur)); | 75 | cur = xzalloc(sizeof(*cur)); |
72 | *prev = cur; | 76 | *prev = cur; |