summaryrefslogtreecommitdiff
path: root/sysklogd
diff options
context:
space:
mode:
authorGlenn L McGrath2003-02-09 05:07:42 +0000
committerGlenn L McGrath2003-02-09 05:07:42 +0000
commit877d418b39421361800afe4e1d4ca69b80edc121 (patch)
tree1346d603e79ec473f5c7e95e734da8a033011581 /sysklogd
parentdef85e875227c9399dcacfc929b2967a4e58d7ba (diff)
downloadbusybox-877d418b39421361800afe4e1d4ca69b80edc121.zip
busybox-877d418b39421361800afe4e1d4ca69b80edc121.tar.gz
Dont die if logging remotely fails, patch by Joshua Jackson
Diffstat (limited to 'sysklogd')
-rw-r--r--sysklogd/syslogd.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/sysklogd/syslogd.c b/sysklogd/syslogd.c
index 34bc019..1c58a64 100644
--- a/sysklogd/syslogd.c
+++ b/sysklogd/syslogd.c
@@ -386,12 +386,8 @@ static void logMessage(int pri, char *msg)
v->iov_base = msg;
v->iov_len = strlen(msg);
writev_retry:
- if (-1 == writev(remotefd, iov, IOV_COUNT)) {
- if (errno == EINTR) {
- goto writev_retry;
- }
- error_msg_and_die("cannot write to remote file handle on %s:%d",
- RemoteHost, RemotePort);
+ if ((-1 == writev(remotefd, iov, IOV_COUNT)) && (errno == EINTR)) {
+ goto writev_retry;
}
}
if (local_logging == TRUE)