> +static HANDLE ms_eventlog; > + > +void openlog(const char *ident, int logopt, int facility) > +{ > + if (ms_eventlog) > + return; > + ms_eventlog = RegisterEventSourceA(NULL, ident); > +} maybe make ms_eventlog thread local? for example: static __thread HANDLE ms_eventlog; this would break compilation with msvc tho. janos -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html