The previous patch is split so the second part of the patch: This part change error messages - to dbg info messages - the data from error messages are now printed in main procedure
Signed-off-by: Ivana Varekova <[email protected]> Ivana Varekova -------------------------------------------------------- diff -up ./cgclassify.c.pom ./cgclassify.c --- ./cgclassify.c.pom 2009-01-30 15:31:20.000000000 +0100 +++ ./cgclassify.c 2009-01-30 15:39:02.000000000 +0100 @@ -44,7 +44,7 @@ int euid_of_pid(pid_t pid, uid_t *euid) sprintf(path, "/proc/%d/status", pid); fp = fopen(path, "r"); if (!fp) { - fprintf(stderr, "Error in opening file %s:%s\n", path, + dbg("Error in opening file %s:%s\n", path, strerror(errno)); return ECGPROCNEXISTS; } @@ -79,7 +79,7 @@ int egid_of_pid(pid_t pid, uid_t *egid) sprintf(path, "/proc/%d/status", pid); fp = fopen(path, "r"); if (!fp) { - fprintf(stderr, "Error in opening file %s:%s\n", path, + dbg("Error in opening file %s:%s\n", path, strerror(errno)); return ECGPROCNEXISTS; } ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Libcg-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/libcg-devel
