[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[monit-dev] [monit] r378 committed - Avoid double close on connection fa
From: |
monit |
Subject: |
[monit-dev] [monit] r378 committed - Avoid double close on connection fail |
Date: |
Thu, 09 Jun 2011 14:21:05 +0000 |
Revision: 378
Author: address@hidden
Date: Thu Jun 9 07:20:31 2011
Log: Avoid double close on connection fail
http://code.google.com/p/monit/source/detail?r=378
Modified:
/trunk/net.c
=======================================
--- /trunk/net.c Thu Jun 9 05:56:06 2011
+++ /trunk/net.c Thu Jun 9 07:20:31 2011
@@ -813,7 +813,6 @@
fds[0].fd = s;
fds[0].events = POLLIN|POLLOUT;
if (poll(fds, 1, timeout * 1000) == 0) {
- close(s);
errno = ETIMEDOUT;
return -1;
}
@@ -825,7 +824,6 @@
return -1;
}
if (error) {
- close(s);
errno = error;
return -1;
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [monit-dev] [monit] r378 committed - Avoid double close on connection fail,
monit <=