From 1ffc44aaf744d9c0c343f8bfd6c752a58f9f8575 Mon Sep 17 00:00:00 2001 From: Pierre Humblet Date: Sun, 23 Feb 2003 19:12:55 +0000 Subject: [PATCH] 2003-02-23 Pierre Humblet * syslog.cc (syslog): Do not unlock the file before closing it and remove debug_printf about stream errors. --- winsup/cygwin/ChangeLog | 5 +++++ winsup/cygwin/syslog.cc | 3 --- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index 6c313cde7..44091119a 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,3 +1,8 @@ +2003-02-23 Pierre Humblet + + * syslog.cc (syslog): Do not unlock the file before closing it + and remove debug_printf about stream errors. + 2003-02-22 Christopher Faylor * cygmalloc.h: Remove MORECORE_CANNOT_TRIM. It's not true. diff --git a/winsup/cygwin/syslog.cc b/winsup/cygwin/syslog.cc index bde15b96f..1d1ffd0e7 100644 --- a/winsup/cygwin/syslog.cc +++ b/winsup/cygwin/syslog.cc @@ -406,9 +406,6 @@ syslog (int priority, const char *message, ...) fputs (timestamp, fp); fputs (msg_strings[0], fp); fputc ('\n', fp); - UnlockFile (fHandle, 0, 0, 1, 0); - if (ferror (fp)) - debug_printf ("error in writing syslog"); fclose (fp); } }