[Pkg-openldap-devel] [openldap] 09/14: r436 at pulsar: torsten | 2005-02-26 00:39:47 +0100 * servers/slapd/main.c: Log a warning if writing the pidfile or writing the arguments file fails (closes: #261696).
Timo Aaltonen
tjaalton-guest at alioth.debian.org
Thu Oct 10 05:34:29 UTC 2013
This is an automated email from the git hooks/post-receive script.
tjaalton-guest pushed a commit to annotated tag 2.2.23-0.pre3
in repository openldap.
commit 287e67f5ef50c6e76df8a33e82a5dd81491458ea
Author: Torsten Landschoff <torsten at debian.org>
Date: Sun Feb 27 17:00:59 2005 +0000
r436 at pulsar: torsten | 2005-02-26 00:39:47 +0100
* servers/slapd/main.c: Log a warning if writing the pidfile or writing
the arguments file fails (closes: #261696).
---
debian/changelog | 2 ++
servers/slapd/main.c | 16 ++++++++++++++++
2 files changed, 18 insertions(+)
diff --git a/debian/changelog b/debian/changelog
index d49ff1b..af54a54 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -17,6 +17,8 @@ openldap2.2 (2.2.23-0.pre3) experimental; urgency=low
file now. Wrapped it into a function and update the owner as well.
How do we do this correctly for ACLs etc.!? Thanks to Carlo Contavalli
for pointing this out.
+ * servers/slapd/main.c: Log a warning if writing the pidfile or writing
+ the arguments file fails (closes: #261696).
--
diff --git a/servers/slapd/main.c b/servers/slapd/main.c
index 83779fd..7c3ff9e 100644
--- a/servers/slapd/main.c
+++ b/servers/slapd/main.c
@@ -685,6 +685,13 @@ int main( int argc, char **argv )
fclose( fp );
} else {
+#ifdef NEW_LOGGING
+ LDAP_LOG( SLAPD, WARNING, "Can't write PID to %s.\n",
+ slapd_pid_file, 0, 0 );
+#else
+ Debug( LDAP_DEBUG_ANY, "Can't write PID to %s.\n",
+ slapd_pid_file, 0, 0 );
+#endif
free(slapd_pid_file);
slapd_pid_file = NULL;
}
@@ -700,6 +707,15 @@ int main( int argc, char **argv )
fprintf( fp, "\n" );
fclose( fp );
} else {
+#ifdef NEW_LOGGING
+ LDAP_LOG( SLAPD, WARNING,
+ "Can't write arguments to %s.\n",
+ slapd_args_file, 0, 0 );
+#else
+ Debug( LDAP_DEBUG_ANY,
+ "Can't write arguments to %s.\n",
+ slapd_args_file, 0, 0 );
+#endif
free(slapd_args_file);
slapd_args_file = NULL;
}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-openldap/openldap.git
More information about the Pkg-openldap-devel
mailing list