summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: f5bbe1f)
raw | patch | inline | side by side (parent: f5bbe1f)
author | Florian Forster <octo@leeloo.lan.home.verplant.org> | |
Mon, 10 Jul 2006 18:56:27 +0000 (20:56 +0200) | ||
committer | Florian Forster <octo@leeloo.lan.home.verplant.org> | |
Mon, 10 Jul 2006 18:56:27 +0000 (20:56 +0200) |
src/vserver.c | patch | blob | history |
diff --git a/src/vserver.c b/src/vserver.c
index 694b6d02b44bf0ab51e4a6fd75ac40b2146e7469..3a77961bbb3089ff6bb259593c671f46f81a1592 100644 (file)
--- a/src/vserver.c
+++ b/src/vserver.c
DIR *proc;
struct dirent *dent; /* 42 */
+ static complain_t complain_obj;
+
errno = 0;
- if (NULL == (proc = opendir (PROCDIR))) {
- syslog (LOG_ERR, "Cannot open '%s': %s", PROCDIR, strerror (errno));
+ if (NULL == (proc = opendir (PROCDIR)))
+ {
+ plugin_complain (LOG_ERR, &complain_obj, "vserver plugin: "
+ "fopen (%s) failed: %s", PROCDIR, strerror (errno));
return;
}
+ plugin_relief (LOG_NOTICE, &complain_obj, "vserver plugin: "
+ "fopen (%s) succeeded.", PROCDIR);
while (NULL != (dent = readdir (proc))) {
int len;