Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPierre Humblet <phumblet@phumblet.no-ip.org>2003-02-23 22:12:55 +0300
committerPierre Humblet <phumblet@phumblet.no-ip.org>2003-02-23 22:12:55 +0300
commit1ffc44aaf744d9c0c343f8bfd6c752a58f9f8575 (patch)
treef6bfadb3d9fd55caee80937881bcd3401ea769a0
parentcc379158bbb56c51fcd8b7ff5c7c33516ea60fe7 (diff)
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 6c313cde7..44091119a 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 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);
}
}