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

Unified Diff: content/browser/child_process_launcher.cc

Issue 2312393002: Debug exit code (Closed)
Patch Set: abort instead of int3 Created 4 years, 3 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 | « base/process/kill_posix.cc ('k') | third_party/WebKit/LayoutTests/TestExpectations » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/child_process_launcher.cc
diff --git a/content/browser/child_process_launcher.cc b/content/browser/child_process_launcher.cc
index 5a655368aa8bac219446a3ea3586a4c7b6eb7666..338227a4043c2fc909aa33fb3877c0d1d8665331 100644
--- a/content/browser/child_process_launcher.cc
+++ b/content/browser/child_process_launcher.cc
@@ -432,6 +432,7 @@ void ChildProcessLauncher::Launch(
SandboxedProcessLauncherDelegate* delegate,
base::CommandLine* cmd_line,
int child_process_id) {
+ fprintf(stderr, "Launch: %s\n", cmd_line->GetCommandLineString().c_str()); fflush(stderr);
DCHECK(CalledOnValidThread());
#if defined(OS_ANDROID)
@@ -529,6 +530,7 @@ void ChildProcessLauncher::DidLaunch(
#endif
base::Process process,
int error_code) {
+ fprintf(stderr, "DidLaunch\n"); fflush(stderr);
if (!process.IsValid())
LOG(ERROR) << "Failed to launch child process";
@@ -593,14 +595,17 @@ const base::Process& ChildProcessLauncher::GetProcess() const {
base::TerminationStatus ChildProcessLauncher::GetChildTerminationStatus(
bool known_dead,
int* exit_code) {
+ fprintf(stderr, "GetChildTerminationStatus\n"); fflush(stderr);
DCHECK(CalledOnValidThread());
if (!process_.IsValid()) {
+ fprintf(stderr, "cached status: %d\n", termination_status_); fflush(stderr);
// Process is already gone, so return the cached termination status.
if (exit_code)
*exit_code = exit_code_;
return termination_status_;
}
+ fprintf(stderr, "UpdateTerminationStatus\n"); fflush(stderr);
UpdateTerminationStatus(known_dead);
if (exit_code)
*exit_code = exit_code_;
« no previous file with comments | « base/process/kill_posix.cc ('k') | third_party/WebKit/LayoutTests/TestExpectations » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698