* 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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user