1 Index: busybox-1.16.1/sysklogd/syslogd.c
2 ===================================================================
3 --- busybox-1.16.1.orig/sysklogd/syslogd.c 2010-03-28 13:44:04.000000000 -0400
4 +++ busybox-1.16.1/sysklogd/syslogd.c 2010-06-17 21:48:11.000000000 -0400
6 static void do_syslogd(void)
10 #if ENABLE_FEATURE_SYSLOGD_DUP
14 * over network, mimic that */
16 /* send message to remote logger, ignore possible error */
17 - /* TODO: on some errors, close and set G.remoteFD to -1
18 - * so that DNS resolution and connect is retried? */
19 - sendto(G.remoteFD, recvbuf, sz+1, MSG_DONTWAIT,
20 - &G.remoteAddr->u.sa, G.remoteAddr->len);
21 + if ( sendto(G.remoteFD, recvbuf, sz+1, MSG_DONTWAIT,
22 + &G.remoteAddr->u.sa, G.remoteAddr->len) == -1 ) {
26 + /* On some errors, close and set G.remoteFD to -1
27 + * so that DNS resolution and connect is retried */