diff options
author | Noriko Hosoi <nhosoi@redhat.com> | 2007-10-05 17:00:04 +0000 |
---|---|---|
committer | Noriko Hosoi <nhosoi@redhat.com> | 2007-10-05 17:00:04 +0000 |
commit | 13c5b2e238efc8a76e78a24ed38b39fc78e8656c (patch) | |
tree | c7bb51e38adc6aa608da35bee637121a5b78dd1e /ldap/servers/slapd/pblock.c | |
parent | 89157bcf8103ed471fbe0363680009e9a6055a96 (diff) | |
download | ds-13c5b2e238efc8a76e78a24ed38b39fc78e8656c.tar.gz ds-13c5b2e238efc8a76e78a24ed38b39fc78e8656c.tar.xz ds-13c5b2e238efc8a76e78a24ed38b39fc78e8656c.zip |
Resolves: #173873
Summary: Directory Server should shutdown if it fails to write logs (comment #7)
Change Description:
1. introduced a new static function log__error_emergency, which is called at
emergency to log to the syslog and at least try to log into the errors log one
more time.
2. added an error parameter to the macro LOG_WRITE_NOW to return if the writing
to the log was successful or not.
3. if opening an errors log or writing to an errors log failed, call
g_set_shutdown to shutdown the server gracefully.
4. log__error_emergency calls writing log function (LDAPDebug --> slapd_log_error_proc_internal) with ERROR_LOCK_WRITE unlocked, if locked.
Diffstat (limited to 'ldap/servers/slapd/pblock.c')
0 files changed, 0 insertions, 0 deletions