summaryrefslogtreecommitdiffstats
path: root/base/process_util_linux.cc
diff options
context:
space:
mode:
authorevan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-01-21 01:00:22 +0000
committerevan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-01-21 01:00:22 +0000
commitbb97536b768ac68fcbc4605c35461a798ef6e5ff (patch)
tree479bde96cd05a9e1f9d2746dd82313e2eb715e8e /base/process_util_linux.cc
parent8731a63268015f4e5d684833c11a1b44bd9ae468 (diff)
downloadchromium_src-bb97536b768ac68fcbc4605c35461a798ef6e5ff.zip
chromium_src-bb97536b768ac68fcbc4605c35461a798ef6e5ff.tar.gz
chromium_src-bb97536b768ac68fcbc4605c35461a798ef6e5ff.tar.bz2
Make CommandLine into a normal object, with some statics for getting at the current process's command line.
One explicit goal of this change is to *not* deal with the string/wstring issues at the API on POSIX; the functions are the same as before, which means they remain as broken as before. (I did try to fix the internals, though, so migrating the callers is now possible by adding platform-appropriate hooks.) Review URL: http://codereview.chromium.org/18248 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@8347 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/process_util_linux.cc')
-rw-r--r--base/process_util_linux.cc9
1 files changed, 5 insertions, 4 deletions
diff --git a/base/process_util_linux.cc b/base/process_util_linux.cc
index aa8ba94..d23f78c 100644
--- a/base/process_util_linux.cc
+++ b/base/process_util_linux.cc
@@ -76,7 +76,7 @@ bool LaunchApp(const std::vector<std::string>& argv,
if (wait)
waitpid(pid, 0, 0);
- if(process_handle)
+ if (process_handle)
*process_handle = pid;
}
@@ -85,9 +85,9 @@ bool LaunchApp(const std::vector<std::string>& argv,
return retval;
}
-
bool LaunchApp(const CommandLine& cl,
- bool wait, bool start_hidden, ProcessHandle* process_handle) {
+ bool wait, bool start_hidden,
+ ProcessHandle* process_handle) {
file_handle_mapping_vector no_files;
return LaunchApp(cl.argv(), no_files, wait, process_handle);
}
@@ -101,7 +101,8 @@ bool DidProcessCrash(ProcessHandle handle) {
if (WIFSIGNALED(status)) {
int signum = WTERMSIG(status);
- return (signum == SIGSEGV || signum == SIGILL || signum == SIGABRT || signum == SIGFPE);
+ return (signum == SIGSEGV || signum == SIGILL || signum == SIGABRT ||
+ signum == SIGFPE);
}
if (WIFEXITED(status)) {