diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2003-09-29 12:31:22 +0000 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2003-09-29 12:31:22 +0000 |
commit | d950ca774f5c8e51a6113e694fe670fc5a3576ee (patch) | |
tree | 05961bd34b3ef0debf0f21c901f7af189844145b | |
parent | 3c3b1816d84a43ec45e3a5dcdc5ddf03d6b8c500 (diff) | |
download | newlib-d950ca774f5c8e51a6113e694fe670fc5a3576ee.zip newlib-d950ca774f5c8e51a6113e694fe670fc5a3576ee.tar.gz newlib-d950ca774f5c8e51a6113e694fe670fc5a3576ee.tar.bz2 |
* syslog.cc (vsyslog): Print debug message if ReportEventA fails.
-rw-r--r-- | winsup/cygwin/ChangeLog | 4 | ||||
-rw-r--r-- | winsup/cygwin/syslog.cc | 5 |
2 files changed, 7 insertions, 2 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index 7618b51..bfe73b6 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -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. diff --git a/winsup/cygwin/syslog.cc b/winsup/cygwin/syslog.cc index f8b1714..c0a34ca 100644 --- a/winsup/cygwin/syslog.cc +++ b/winsup/cygwin/syslog.cc @@ -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 |