[BusyBox-cvs] busybox/sysklogd syslogd.c,1.91,1.92

Glenn McGrath bug1 at busybox.net
Sun Feb 9 05:07:46 UTC 2003


Update of /var/cvs/busybox/sysklogd
In directory winder:/tmp/cvs-serv21704/sysklogd

Modified Files:
	syslogd.c 
Log Message:
Dont die if logging remotely fails, patch by Joshua Jackson


Index: syslogd.c
===================================================================
RCS file: /var/cvs/busybox/sysklogd/syslogd.c,v
retrieving revision 1.91
retrieving revision 1.92
diff -u -d -r1.91 -r1.92
--- syslogd.c	12 Dec 2002 10:54:48 -0000	1.91
+++ syslogd.c	9 Feb 2003 05:07:42 -0000	1.92
@@ -386,12 +386,8 @@
 		v->iov_base = msg;
 		v->iov_len = strlen(msg);
 	  writev_retry:
-		if (-1 == writev(remotefd, iov, IOV_COUNT)) {
-			if (errno == EINTR) {
-				goto writev_retry;
-			}
-			error_msg_and_die("cannot write to remote file handle on %s:%d",
-							  RemoteHost, RemotePort);
+		if ((-1 == writev(remotefd, iov, IOV_COUNT)) && (errno == EINTR)) {
+			goto writev_retry;
 		}
 	}
 	if (local_logging == TRUE)




More information about the busybox-cvs mailing list