mirror of https://github.com/mirror/busybox.git
Patch from Larry Doolittle to teach syslogd to not give up when errno is EINTR
parent
fb24eb4f47
commit
4e116823f4
|
@ -361,8 +361,10 @@ static const int IOV_COUNT = 2;
|
||||||
v->iov_base = msg;
|
v->iov_base = msg;
|
||||||
v->iov_len = strlen(msg);
|
v->iov_len = strlen(msg);
|
||||||
|
|
||||||
|
writev_retry:
|
||||||
if ( -1 == writev(remotefd,iov, IOV_COUNT)){
|
if ( -1 == writev(remotefd,iov, IOV_COUNT)){
|
||||||
error_msg_and_die("syslogd: cannot write to remote file handle on "
|
if (errno == EINTR) goto writev_retry;
|
||||||
|
error_msg_and_die("syslogd: cannot write to remote file handle on"
|
||||||
"%s:%d",RemoteHost,RemotePort);
|
"%s:%d",RemoteHost,RemotePort);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue