Re: [msysGit] [PATCH v2 02/14] mingw: implement syslog From: Janos Laube <hidden> Date: 2016-06-15 22:48:02 +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
Keyboard shortcuts hback out one level jnext message in thread kprevious message in thread ldrill in Escclose help / fold thread tree ?toggle this help