* cygtls.cc (_cygtls::init_thread): Drop setting locals.process_logmask.

* cygtls.cc (_cygtls::remove): Always free mallocated TLS storage on
	thread exit.  Drop freeing locals.process_ident.
	* cygtls.h (struct _local_storage): Remove syslog-related members.
	* syslog.cc (syslog_globals): New static storage for global syslog
	settings.  Use throughout instead of _my_tls.locals.
	(openlog): Set new syslog_globals.process_ident value more carefully.
	* tlsoffsets.h: Regenerate.
This commit is contained in:
Corinna Vinschen
2011-04-21 08:10:28 +00:00
parent 2656876fb3
commit a0307f9914
5 changed files with 103 additions and 92 deletions

View File

@@ -114,12 +114,6 @@ struct _local_storage
/* strerror */
char strerror_buf[sizeof ("Unknown error 4294967295")];
/* sysloc.cc */
wchar_t *process_ident; // note: malloced
int process_logopt;
int process_facility;
int process_logmask;
/* times.cc */
char timezone_buf[20];
struct tm _localtime_buf;