summaryrefslogtreecommitdiffstats
path: root/base
diff options
context:
space:
mode:
authorthomasvl@chromium.org <thomasvl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-02-03 03:13:53 +0000
committerthomasvl@chromium.org <thomasvl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-02-03 03:13:53 +0000
commitc7e5e94bd0112a8ede65dfcab222ba45e78a1b76 (patch)
tree0d47a05b920b01ea07b26e950f02f0adaa75adfd /base
parent661eb9d1aa5468b984a92e66937432d881f70427 (diff)
downloadchromium_src-c7e5e94bd0112a8ede65dfcab222ba45e78a1b76.zip
chromium_src-c7e5e94bd0112a8ede65dfcab222ba45e78a1b76.tar.gz
chromium_src-c7e5e94bd0112a8ede65dfcab222ba45e78a1b76.tar.bz2
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
Diffstat (limited to 'base')
-rw-r--r--base/message_pump_libevent.cc4
1 files changed, 4 insertions, 0 deletions
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_);
}