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:
authorCorinna Vinschen <corinna@vinschen.de>2009-12-02 18:23:03 +0300
committerCorinna Vinschen <corinna@vinschen.de>2009-12-02 18:23:03 +0300
commit2bc3381e5c9922ba6013c8b8cc7809d49057d4d4 (patch)
tree8e09307dc9a4a57460e4935538f26e4b2601fda0 /winsup/cygwin/syslog.cc
parent39276d4bceae7c91479f7e691a833a3991b8ed79 (diff)
* fhandler_socket.cc (send_internal): Don't split datagram messages
into pieces. * syslog.cc (vsyslog): Set default facility to LOG_USER if it hasn't been set yet.
Diffstat (limited to 'winsup/cygwin/syslog.cc')
-rw-r--r--winsup/cygwin/syslog.cc6
1 files changed, 5 insertions, 1 deletions
diff --git a/winsup/cygwin/syslog.cc b/winsup/cygwin/syslog.cc
index fe76b50e0..b27f0e716 100644
--- a/winsup/cygwin/syslog.cc
+++ b/winsup/cygwin/syslog.cc
@@ -1,7 +1,7 @@
/* syslog.cc
Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
- 2006, 2007 Red Hat, Inc.
+ 2006, 2007, 2009 Red Hat, Inc.
This file is part of Cygwin.
@@ -275,6 +275,10 @@ vsyslog (int priority, const char *message, va_list ap)
return;
}
+ /* Set default facility to LOG_USER if not yet set via openlog. */
+ if (!_my_tls.locals.process_facility)
+ _my_tls.locals.process_facility = LOG_USER;
+
/* Add default facility if not in the given priority. */
if (!(priority & LOG_FACMASK))
priority |= _my_tls.locals.process_facility;