diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2011-12-25 23:38:36 +0900 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2011-12-25 23:38:36 +0900 |
| commit | 52155b1860765c63a9a335f0467870ae4cc7a4d0 (patch) | |
| tree | 93e6782324f5fc2de2a3dd8c4da3bf45082f3f7e /src/KqueueEventPoll.cc | |
| parent | 8865001f0112840d0f4cf370e55df26ff036cca3 (diff) | |
No retry for close() with EINTR. Also reverted changes in d5ffa253.
Diffstat (limited to 'src/KqueueEventPoll.cc')
| -rw-r--r-- | src/KqueueEventPoll.cc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/KqueueEventPoll.cc b/src/KqueueEventPoll.cc index 688bc91f..e5039943 100644 --- a/src/KqueueEventPoll.cc +++ b/src/KqueueEventPoll.cc @@ -97,8 +97,7 @@ KqueueEventPoll::KqueueEventPoll() KqueueEventPoll::~KqueueEventPoll() { if(kqfd_ != -1) { - int r; - while((r = close(kqfd_)) == -1 && errno == EINTR); + int r = close(kqfd_); int errNum = errno; if(r == -1) { A2_LOG_ERROR(fmt("Error occurred while closing kqueue file descriptor" |
