summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 4ecc24f)
raw | patch | inline | side by side (parent: 4ecc24f)
author | Dagobert Michelsen <dam@opencsw.org> | |
Thu, 28 May 2015 11:24:41 +0000 (13:24 +0200) | ||
committer | Dagobert Michelsen <dam@opencsw.org> | |
Thu, 28 May 2015 11:24:41 +0000 (13:24 +0200) |
src/zone.c | patch | blob | history |
diff --git a/src/zone.c b/src/zone.c
index 385e5116af87b67b1bc67761dad82718d2859e1b..78e91ef2e4fd7a45de50c75ecb9f4ce9d483a5ca 100644 (file)
--- a/src/zone.c
+++ b/src/zone.c
char procfile[MAX_PROCFS_PATH];
(void)snprintf(procfile, sizeof(procfile), "/proc/%s/%s", pidstr, file);
- while ((fd = open(procfile, O_RDONLY)) == -1) {
- if ((errno != EMFILE) || (errno != ENFILE)) {
- return(1);
- }
+ if ((fd = open(procfile, O_RDONLY)) == -1) {
+ return (1);
}
if (pread(fd, buf, bufsize, 0) != bufsize) {