diff options
author | Glenn L McGrath <bug1@ihug.co.nz> | 2003-02-09 05:07:42 +0000 |
---|---|---|
committer | Glenn L McGrath <bug1@ihug.co.nz> | 2003-02-09 05:07:42 +0000 |
commit | 877d418b39421361800afe4e1d4ca69b80edc121 (patch) | |
tree | 1346d603e79ec473f5c7e95e734da8a033011581 | |
parent | def85e875227c9399dcacfc929b2967a4e58d7ba (diff) | |
download | busybox-w32-877d418b39421361800afe4e1d4ca69b80edc121.tar.gz busybox-w32-877d418b39421361800afe4e1d4ca69b80edc121.tar.bz2 busybox-w32-877d418b39421361800afe4e1d4ca69b80edc121.zip |
Dont die if logging remotely fails, patch by Joshua Jackson
-rw-r--r-- | sysklogd/syslogd.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/sysklogd/syslogd.c b/sysklogd/syslogd.c index 34bc019a0..1c58a64f8 100644 --- a/sysklogd/syslogd.c +++ b/sysklogd/syslogd.c | |||
@@ -386,12 +386,8 @@ static void logMessage(int pri, char *msg) | |||
386 | v->iov_base = msg; | 386 | v->iov_base = msg; |
387 | v->iov_len = strlen(msg); | 387 | v->iov_len = strlen(msg); |
388 | writev_retry: | 388 | writev_retry: |
389 | if (-1 == writev(remotefd, iov, IOV_COUNT)) { | 389 | if ((-1 == writev(remotefd, iov, IOV_COUNT)) && (errno == EINTR)) { |
390 | if (errno == EINTR) { | 390 | goto writev_retry; |
391 | goto writev_retry; | ||
392 | } | ||
393 | error_msg_and_die("cannot write to remote file handle on %s:%d", | ||
394 | RemoteHost, RemotePort); | ||
395 | } | 391 | } |
396 | } | 392 | } |
397 | if (local_logging == TRUE) | 393 | if (local_logging == TRUE) |