mirror of https://github.com/mirror/busybox.git
Dont die if logging remotely fails, patch by Joshua Jackson
parent
def85e8752
commit
877d418b39
|
@ -386,12 +386,8 @@ static void logMessage(int pri, char *msg)
|
||||||
v->iov_base = msg;
|
v->iov_base = msg;
|
||||||
v->iov_len = strlen(msg);
|
v->iov_len = strlen(msg);
|
||||||
writev_retry:
|
writev_retry:
|
||||||
if (-1 == writev(remotefd, iov, IOV_COUNT)) {
|
if ((-1 == writev(remotefd, iov, IOV_COUNT)) && (errno == EINTR)) {
|
||||||
if (errno == EINTR) {
|
goto writev_retry;
|
||||||
goto writev_retry;
|
|
||||||
}
|
|
||||||
error_msg_and_die("cannot write to remote file handle on %s:%d",
|
|
||||||
RemoteHost, RemotePort);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (local_logging == TRUE)
|
if (local_logging == TRUE)
|
||||||
|
|
Loading…
Reference in New Issue