Hi, In cgre_get_euid_egid_from_status(), the log message "Failed to open /proc/<pid>/status" is output. This open error is not problem and it is usual, because a process may finish and its /proc/<pid>/status file does not exist. So I think this message is not worth and we can delete this message.
Thanks Ken'ichi Ohmichi Signed-off-by: Ken'ichi Ohmichi <[email protected]> --- src/daemon/cgrulesengd.c | 4 +--- 1 files changed, 1 insertions(+), 3 deletions(-) diff --git a/src/daemon/cgrulesengd.c b/src/daemon/cgrulesengd.c index fb757c1..f6a3f8d 100644 --- a/src/daemon/cgrulesengd.c +++ b/src/daemon/cgrulesengd.c @@ -165,10 +165,8 @@ static int cgre_get_euid_egid_from_status(pid_t pid, uid_t *euid, gid_t *egid) */ sprintf(path, "/proc/%d/status", pid); f = fopen(path, "r"); - if (!f) { - flog(LOG_WARNING, "Failed to open %s", path); + if (!f) return 1; - } /* Have the eUID, need to find the eGID. */ memset(buf, '\0', sizeof(buf)); ------------------------------------------------------------------------------ Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensing option that enables unlimited royalty-free distribution of the report engine for externally facing server and web deployment. http://p.sf.net/sfu/businessobjects _______________________________________________ Libcg-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/libcg-devel
