On Mon, Apr 27, 2009 at 11:21 AM, Evan Martin <[email protected]> wrote:

> That leaves process_util for Linux and Mac, which uses fuser (or
> something similar) and that is a hack.  However, it's only used for ui
> tests, I believe -- it's not needed in normal usage.


The Mac uses ps -xw, but the same reasoning applies. It's rather hacky, but
I'm in the same position as you, that since it's only used during testing,
that's OK. (And in fact, the Mac version as it exists today would only work
during testing so we're sure that no one will start using it in the actual
app.)


> I am not opposed
> to (lazily, on a background thread) writing a pid file on Linux,
> though I'd prefer some other solution if one could be found.


I'm not fond of the idea, as it just litters things up. And since it's only
needed for testing the app, but it would be written all the time (testing or
not) it's just wasteful.


> Maybe
> it's to just remove the need for ChromeBrowserProcessId() somehow.


It would be nice, but that's used to test the spawning of processes, so it
might not be easily expurgated.

Avi

--~--~---------~--~----~------------~-------~--~----~
Chromium Developers mailing list: [email protected] 
View archives, change email options, or unsubscribe: 
    http://groups.google.com/group/chromium-dev
-~----------~----~----~----~------~----~------~--~---

Reply via email to