cvsd commit: MODIFIED: . ...
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
cvsd commit: MODIFIED: . ...
- From: Commits of the cvsd project <cvsd-commits [at] lists.arthurdejong.org>
- To: cvsd-commits [at] lists.arthurdejong.org
- Reply-to: cvsd-users [at] lists.arthurdejong.org
- Subject: cvsd commit: MODIFIED: . ...
- Date: Wed, 08 Sep 2010 21:46:04 +0200
User: arthur
Date: 10/09/08 21:46:04
Modified: . cvsd.c
Log:
log bind() failures as error and bail out
Revision Changes Path
1.122 +2 -2 cvsd/cvsd.c
Index: cvsd.c
===================================================================
RCS file: /home/arthur/devel/repos/cvsd/cvsd.c,v
retrieving revision 1.121
retrieving revision 1.122
diff -u -b -r1.121 -r1.122
--- cvsd.c 8 Sep 2010 19:31:57 -0000 1.121
+++ cvsd.c 8 Sep 2010 19:46:04 -0000 1.122
@@ -470,10 +470,10 @@
/* bind the socket to the specified port */
if (bind(sock,addr->ai_addr,addr->ai_addrlen)<0)
{
- log_log(LOG_DEBUG,"debug: bind() failed (ignored): %s",strerror(errno));
+ log_log(LOG_ERR,"bind() failed: %s",strerror(errno));
if (close(sock))
log_log(LOG_WARNING,"problem closing socket (ignored):
%s",strerror(errno));
- continue;
+ exit(1);
}
/* start listening for connections */
--
To unsubscribe send an email to
cvsd-commits-unsubscribe@lists.arthurdejong.org or see
http://lists.arthurdejong.org/cvsd-commits