From: fredrik@DOLDA2000.COM Date: Fri, 29 Apr 2005 00:43:00 +0000 (+0000) Subject: Shouldn't exit on send failure. X-Git-Url: http://dolda2000.com/gitweb/?p=icmp-dn.git;a=commitdiff_plain;h=1ac6ec0ce024a92a3ee61a1a0530613b1e335aa8 Shouldn't exit on send failure. git-svn-id: svn+ssh://svn.dolda2000.com/srv/svn/repos/src/icmp-dn@214 959494ce-11ee-0310-bf91-de5d638817bd --- diff --git a/icmpdnd.c b/icmpdnd.c index 3fa1792..2b59175 100644 --- a/icmpdnd.c +++ b/icmpdnd.c @@ -198,10 +198,8 @@ int main(int argc, char **argv) /* XXX: The correct source address needs to be filled in from * the request's destination address. */ ret = sendto(s, buf, datalen + sizeof(rep), 0, (struct sockaddr *)&name, namelen); - if(ret < 0) { + if(ret < 0) syslog(LOG_WARNING, "error in sending reply: %m"); - exit(1); - } } close(s);