1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-07-29 11:41:21 +03:00
2002-12-13  Ulrich Drepper  <drepper@redhat.com>

	* misc/syslog.c (log_cleanup): Don't use parameter in
	__libc_lock_unlock call, use syslog_lock directly.  Adjust callers to
	pass NULL instead of a pointer to syslog_lock.
This commit is contained in:
Ulrich Drepper
2002-12-13 10:59:14 +00:00
parent b9633fccd3
commit 9ae0909b35
22 changed files with 312 additions and 77 deletions

View File

@ -333,7 +333,7 @@ openlog_internal(const char *ident, int logstat, int logfac)
static void
log_cleanup (void *arg)
{
__libc_lock_unlock (*(__libc_lock_t *) arg);
__libc_lock_unlock (syslog_lock);
}
void
@ -341,7 +341,7 @@ openlog (const char *ident, int logstat, int logfac)
{
#ifdef _LIBC_REENTRANT
/* Protect against multiple users. */
__libc_cleanup_region_start (1, log_cleanup, &syslog_lock);
__libc_cleanup_region_start (1, log_cleanup, NULL);
__libc_lock_lock (syslog_lock);
#endif
@ -375,7 +375,7 @@ closelog ()
{
#ifdef _LIBC_REENTRANT
/* Protect against multiple users. */
__libc_cleanup_region_start (1, log_cleanup, &syslog_lock);
__libc_cleanup_region_start (1, log_cleanup, NULL);
__libc_lock_lock (syslog_lock);
#endif