aboutsummaryrefslogtreecommitdiff
path: root/misc
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>1998-02-27 18:32:03 +0000
committerUlrich Drepper <drepper@redhat.com>1998-02-27 18:32:03 +0000
commitf024c19647c20b3529372cb41682b4cf962447c4 (patch)
tree92d528f2c61b8e3d638cfda4b0f5d7304d3a758d /misc
parent227d9931ef8b8c9879e14fab19ee134411a04d5e (diff)
downloadglibc-f024c19647c20b3529372cb41682b4cf962447c4.tar
glibc-f024c19647c20b3529372cb41682b4cf962447c4.tar.gz
glibc-f024c19647c20b3529372cb41682b4cf962447c4.tar.bz2
glibc-f024c19647c20b3529372cb41682b4cf962447c4.zip
Update.
* misc/syslog.c: Change to allow user the interpretation of the outcome even with syslog having no return value. 1998-02-05 20:41 Wolfram Gloger <wmglo@dent.med.uni-muenchen.de> * elf/dl-addr.c: Fix search algorithms in dladdr(); don't assume that the number of program headers is >0 (which is wrong for the loader itself). 1998-02-27 Ulrich Drepper <drepper@cygnus.com>
Diffstat (limited to 'misc')
-rw-r--r--misc/syslog.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/misc/syslog.c b/misc/syslog.c
index 0984845699..0373ee1241 100644
--- a/misc/syslog.c
+++ b/misc/syslog.c
@@ -252,6 +252,8 @@ openlog_internal(const char *ident, int logstat, int logfac)
}
}
if (LogFile != -1 && !connected)
+ {
+ int old_errno = errno;
if (__connect(LogFile, &SyslogAddr, sizeof(SyslogAddr))
== -1)
{
@@ -263,6 +265,7 @@ openlog_internal(const char *ident, int logstat, int logfac)
{
/* retry with next SOCK_STREAM: */
LogType = SOCK_STREAM;
+ __set_errno (old_errno);
continue;
}
} else