* archival/bunzip2.c (bunzip2_main): Do not remove files if writing to standard
[oweals/busybox.git] / sysklogd / syslogd.c
index 6db017cd479860bf58595dc12e86a22d553bd8fd..e1e71378c63a2e78e691fde1fe100fc81f7da21b 100644 (file)
@@ -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);
                }
        }