Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(575)

Issue 496007: Make ProcessWatcher use kqueues on Mac. (Closed)

Created:
11 years ago by jeremy
Modified:
9 years, 6 months ago
Reviewers:
Avi (use Gerrit), agl
CC:
chromium-reviews_googlegroups.com, brettw+cc_chromium.org, Paweł Hajdan Jr., pam+watch_chromium.org, John Grabowski
Visibility:
Public.

Description

Make ProcessWatcher use kqueues on Mac. * Port ProcessWatcher::EnsureProcessTerminated() to kqueue() APIs on OS X. * Make ProcessWatcher::EnsureProcessGetsReaped() Linux-only, since it's only used there. * Add a unit test. BUG=12731 TEST=Open Chrome/Mac, open and close a few tabs. Processes shouldn't stay around. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=34547

Patch Set 1 #

Patch Set 2 : Fixes #

Patch Set 3 : Fix whitespaces at eol #

Patch Set 4 : Small Fix #

Patch Set 5 : ... #

Total comments: 10

Patch Set 6 : No need for a thread #

Unified diffs Side-by-side diffs Delta from patch set Stats (+255 lines, -9 lines) Patch
M base/base.gypi View 1 chunk +0 lines, -1 line 0 comments Download
M base/file_util.h View 1 2 3 1 chunk +14 lines, -0 lines 0 comments Download
M base/time.h View 1 chunk +4 lines, -0 lines 0 comments Download
M base/time_posix.cc View 2 chunks +16 lines, -0 lines 0 comments Download
M base/time_unittest.cc View 1 chunk +21 lines, -0 lines 0 comments Download
M chrome/browser/child_process_launcher.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/chrome.gyp View 1 2 3 4 5 2 chunks +6 lines, -0 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/process_watcher.h View 1 2 3 4 5 1 chunk +3 lines, -2 lines 0 comments Download
A chrome/common/process_watcher_mac.cc View 1 2 3 4 5 1 chunk +136 lines, -0 lines 0 comments Download
M chrome/common/process_watcher_posix.cc View 3 chunks +4 lines, -4 lines 0 comments Download
A chrome/common/process_watcher_unittest.cc View 1 2 3 4 5 1 chunk +48 lines, -0 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
jeremy
11 years ago (2009-12-13 12:26:24 UTC) #1
Avi (use Gerrit)
I'm not sure I understand this code change. The bug says we should use kqueues ...
11 years ago (2009-12-13 17:11:34 UTC) #2
jeremy
You're right, no need for a thread since ChildProcessLauncher::Context::TerminateInternal already creates one. http://codereview.chromium.org/496007/diff/2002/2003 File base/file_util.h ...
11 years ago (2009-12-14 15:12:51 UTC) #3
Avi (use Gerrit)
I'm afraid I still don't understand this change. I thought the whole point was to ...
11 years ago (2009-12-14 15:20:07 UTC) #4
jeremy
The main issue here is cleanup. I wanted to take a look at moving some ...
11 years ago (2009-12-14 17:03:09 UTC) #5
Avi (use Gerrit)
What of the potential 2s delay? What thread is this called from, and is such ...
11 years ago (2009-12-14 17:36:37 UTC) #6
jeremy
Both before and after this CL the blocked thread is one that's not doing any ...
11 years ago (2009-12-14 18:12:51 UTC) #7
Avi (use Gerrit)
11 years ago (2009-12-14 18:31:31 UTC) #8
LG

Powered by Google App Engine
This is Rietveld 408576698