* syslog.cc (vsyslog): Print debug message if ReportEventA fails.
This commit is contained in:
parent
3c3b1816d8
commit
d950ca774f
@ -1,3 +1,7 @@
|
||||
2003-09-29 Corinna Vinschen <corinna@vinschen.de>
|
||||
|
||||
* syslog.cc (vsyslog): Print debug message if ReportEventA fails.
|
||||
|
||||
2003-09-28 Pierre Humblet <pierre.humblet@ieee.org>
|
||||
|
||||
* sigproc.cc (proc_subproc): Restrict permissions on ppid_handle.
|
||||
|
@ -360,8 +360,9 @@ vsyslog (int priority, const char *message, va_list ap)
|
||||
debug_printf ("RegisterEventSourceA failed with %E");
|
||||
return;
|
||||
}
|
||||
ReportEventA (hEventSrc, eventType, 0, 0,
|
||||
cygheap->user.sid (), 1, 0, msg_strings, NULL);
|
||||
if (!ReportEventA (hEventSrc, eventType, 0, 0,
|
||||
cygheap->user.sid (), 1, 0, msg_strings, NULL))
|
||||
debug_printf ("ReportEventA failed with %E");
|
||||
DeregisterEventSource (hEventSrc);
|
||||
}
|
||||
else
|
||||
|
Loading…
x
Reference in New Issue
Block a user