* syslog.cc (vsyslog): Print debug message if ReportEventA fails.

This commit is contained in:
Corinna Vinschen 2003-09-29 12:31:22 +00:00
parent 3c3b1816d8
commit d950ca774f
2 changed files with 7 additions and 2 deletions

View File

@ -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.

View File

@ -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