From e6ff1d1ce5444a7f3917407fed6f3bc9ee044b50 Mon Sep 17 00:00:00 2001 From: Chris Jones Date: Mon, 25 Jan 2010 14:10:12 -0600 Subject: [PATCH] More temporary debug spew to sort linux mochitest hang. --- dom/plugins/PluginModuleChild.cpp | 10 ++++++++++ .../common/process_watcher_posix_sigchld.cc | 17 +++++++++++++++++ 2 files changed, 27 insertions(+) diff --git a/dom/plugins/PluginModuleChild.cpp b/dom/plugins/PluginModuleChild.cpp index b09a74f21dc8..8e795fb9c828 100644 --- a/dom/plugins/PluginModuleChild.cpp +++ b/dom/plugins/PluginModuleChild.cpp @@ -265,6 +265,16 @@ PluginModuleChild::AnswerNP_Shutdown(NPError *rv) { AssertPluginThread(); + + + +#ifdef OS_LINUX + printf("TEST-UNEXPECTED-FAIL | plugin process %d | got NP_Shutdown() %d\n", getpid()); +#endif + + + + // the PluginModuleParent shuts down this process after this RPC // call pops off its stack diff --git a/ipc/chromium/src/chrome/common/process_watcher_posix_sigchld.cc b/ipc/chromium/src/chrome/common/process_watcher_posix_sigchld.cc index dec42a32ac9e..cf2ed8b85ac0 100644 --- a/ipc/chromium/src/chrome/common/process_watcher_posix_sigchld.cc +++ b/ipc/chromium/src/chrome/common/process_watcher_posix_sigchld.cc @@ -115,7 +115,24 @@ protected: void WaitForChildExit() { DCHECK(process_); + + + + printf("TEST-UNEXPECTED-FAIL | process %d busy-waiting on | child process %d\n", getpid(), process_); + + + + HANDLE_EINTR(waitpid(process_, NULL, 0)); + + + + + printf("TEST-UNEXPECTED-FAIL | process %d done busy-waiting on | child process %d\n", getpid(), process_); + + + + } pid_t process_;