From c7e5e94bd0112a8ede65dfcab222ba45e78a1b76 Mon Sep 17 00:00:00 2001 From: "thomasvl@chromium.org" Date: Tue, 3 Feb 2009 03:13:53 +0000 Subject: The dtor wasn't actually cleaning up the fds from the pipe, so close them down during shutdown. (this w/ the zombies was what caused the bots to run out of fds) Review URL: http://codereview.chromium.org/20006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9066 0039d316-1c4b-4281-b951-d872f2087c98 --- base/message_pump_libevent.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/base/message_pump_libevent.cc b/base/message_pump_libevent.cc index 0055d68..0b849c5 100644 --- a/base/message_pump_libevent.cc +++ b/base/message_pump_libevent.cc @@ -112,6 +112,10 @@ MessagePumpLibevent::~MessagePumpLibevent() { DCHECK(event_base_); event_del(wakeup_event_); delete wakeup_event_; + if (wakeup_pipe_in_ >= 0) + close(wakeup_pipe_in_); + if (wakeup_pipe_out_ >= 0) + close(wakeup_pipe_out_); event_base_free(event_base_); } -- cgit v1.1