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

Unified Diff: chrome/service/cloud_print/cloud_print_proxy.cc

Issue 10830229: Fixed chrome zombies when cloud print connector is running. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/service/cloud_print/cloud_print_proxy.cc
diff --git a/chrome/service/cloud_print/cloud_print_proxy.cc b/chrome/service/cloud_print/cloud_print_proxy.cc
old mode 100644
new mode 100755
index 6b4e2ce646732b79fbe140ad1f083cd4adc96cc0..808ffbf44c63b0e8cd5cb72732d682b03c49d3a8
--- a/chrome/service/cloud_print/cloud_print_proxy.cc
+++ b/chrome/service/cloud_print/cloud_print_proxy.cc
@@ -38,7 +38,13 @@ void LaunchBrowserProcessWithSwitch(const std::string& switch_string) {
cmd_line.AppendSwitchPath(switches::kUserDataDir, user_data_dir);
cmd_line.AppendSwitch(switch_string);
+#if defined(OS_POSIX) && !defined(OS_MACOSX)
+ base::ProcessHandle pid = 0;
+ base::LaunchProcess(cmd_line, base::LaunchOptions(), &pid);
+ base::EnsureProcessGetsReaped(pid);
+#else
base::LaunchProcess(cmd_line, base::LaunchOptions(), NULL);
+#endif
}
// This method is invoked on the IO thread to launch the browser process to
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698