summaryrefslogtreecommitdiff
path: root/src/PortEventPoll.cc
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2011-12-25 23:38:36 +0900
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2011-12-25 23:38:36 +0900
commit52155b1860765c63a9a335f0467870ae4cc7a4d0 (patch)
tree93e6782324f5fc2de2a3dd8c4da3bf45082f3f7e /src/PortEventPoll.cc
parent8865001f0112840d0f4cf370e55df26ff036cca3 (diff)
No retry for close() with EINTR. Also reverted changes in d5ffa253.
Diffstat (limited to 'src/PortEventPoll.cc')
-rw-r--r--src/PortEventPoll.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/PortEventPoll.cc b/src/PortEventPoll.cc
index db4cb9fb..b95fc44b 100644
--- a/src/PortEventPoll.cc
+++ b/src/PortEventPoll.cc
@@ -86,8 +86,7 @@ PortEventPoll::PortEventPoll()
PortEventPoll::~PortEventPoll()
{
if(port_ != -1) {
- int r;
- while((r = close(port_)) == -1 && errno == EINTR);
+ int r = close(port_);
int errNum = errno;
if(r == -1) {
A2_LOG_ERROR(fmt("Error occurred while closing port %d: %s",