aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPierre Humblet <phumblet@phumblet.no-ip.org>2003-02-23 19:12:55 +0000
committerPierre Humblet <phumblet@phumblet.no-ip.org>2003-02-23 19:12:55 +0000
commit1ffc44aaf744d9c0c343f8bfd6c752a58f9f8575 (patch)
treef6bfadb3d9fd55caee80937881bcd3401ea769a0
parentcc379158bbb56c51fcd8b7ff5c7c33516ea60fe7 (diff)
downloadnewlib-1ffc44aaf744d9c0c343f8bfd6c752a58f9f8575.zip
newlib-1ffc44aaf744d9c0c343f8bfd6c752a58f9f8575.tar.gz
newlib-1ffc44aaf744d9c0c343f8bfd6c752a58f9f8575.tar.bz2
2003-02-23 Pierre Humblet <pierre.humblet@ieee.org>
* syslog.cc (syslog): Do not unlock the file before closing it and remove debug_printf about stream errors.
-rw-r--r--winsup/cygwin/ChangeLog5
-rw-r--r--winsup/cygwin/syslog.cc3
2 files changed, 5 insertions, 3 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog
index 6c313cd..4409111 100644
--- a/winsup/cygwin/ChangeLog
+++ b/winsup/cygwin/ChangeLog
@@ -1,3 +1,8 @@
+2003-02-23 Pierre Humblet <pierre.humblet@ieee.org>
+
+ * syslog.cc (syslog): Do not unlock the file before closing it
+ and remove debug_printf about stream errors.
+
2003-02-22 Christopher Faylor <cgf@redhat.com>
* cygmalloc.h: Remove MORECORE_CANNOT_TRIM. It's not true.
diff --git a/winsup/cygwin/syslog.cc b/winsup/cygwin/syslog.cc
index bde15b9..1d1ffd0 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);
}
}