diff options
author | Eric Andersen <andersen@codepoet.org> | 2002-04-13 14:07:32 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2002-04-13 14:07:32 +0000 |
commit | 4e116823f406a51daf1aeeaad538d613d2b51cc1 (patch) | |
tree | 181b302e0dcc1e163597041aa928e56cbba8362e /sysklogd | |
parent | fb24eb4f47b84a64a1fcc3cee7a6ecba1c7b8e58 (diff) | |
download | busybox-4e116823f406a51daf1aeeaad538d613d2b51cc1.tar.gz |
Patch from Larry Doolittle to teach syslogd to not give up when errno is EINTR
Diffstat (limited to 'sysklogd')
-rw-r--r-- | sysklogd/syslogd.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sysklogd/syslogd.c b/sysklogd/syslogd.c index ae5a1d0ba..e1e71378c 100644 --- a/sysklogd/syslogd.c +++ b/sysklogd/syslogd.c @@ -361,8 +361,10 @@ static const int IOV_COUNT = 2; v->iov_base = msg; v->iov_len = strlen(msg); +writev_retry: 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); } } |