Index: base/process_util_linux.cc |
diff --git a/base/process_util_linux.cc b/base/process_util_linux.cc |
index fff9a6d8274c6e21a75208fd226512e1c5541777..d53b2c73ef8812d722182cd674873494fcd0a85f 100644 |
--- a/base/process_util_linux.cc |
+++ b/base/process_util_linux.cc |
@@ -85,6 +85,7 @@ bool LaunchApp(const std::vector<std::string>& argv, |
return retval; |
} |
+ |
bool LaunchApp(const CommandLine& cl, |
bool wait, bool start_hidden, |
ProcessHandle* process_handle) { |
@@ -92,31 +93,6 @@ bool LaunchApp(const CommandLine& cl, |
return LaunchApp(cl.argv(), no_files, wait, process_handle); |
} |
-bool DidProcessCrash(ProcessHandle handle) { |
- int status; |
- if (waitpid(handle, &status, WNOHANG)) { |
- // I feel like dancing! |
- return false; |
- } |
- |
- if (WIFSIGNALED(status)) { |
- switch(WTERMSIG(status)) { |
- case SIGSEGV: |
- case SIGILL: |
- case SIGABRT: |
- case SIGFPE: |
- return true; |
- default: |
- return false; |
- } |
- } |
- |
- if (WIFEXITED(status)) |
- return WEXITSTATUS(status) != 0; |
- |
- return false; |
-} |
- |
NamedProcessIterator::NamedProcessIterator(const std::wstring& executable_name, |
const ProcessFilter* filter) |
: executable_name_(executable_name), filter_(filter) { |