summaryrefslogtreecommitdiffstats
path: root/base/process_util.h
diff options
context:
space:
mode:
Diffstat (limited to 'base/process_util.h')
-rw-r--r--base/process_util.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/base/process_util.h b/base/process_util.h
index 91cca61..17ee3c7 100644
--- a/base/process_util.h
+++ b/base/process_util.h
@@ -414,6 +414,17 @@ void EnableTerminationOnHeapCorruption();
// the current process's scheduling priority to a high priority.
void RaiseProcessToHighPriority();
+#if defined(OS_MACOSX)
+// Restore the default exception handler, setting it to Apple Crash Reporter
+// (ReportCrash). When forking and execing a new process, the child will
+// inherit the parent's exception ports, which may be set to the Breakpad
+// instance running inside the parent. The parent's Breakpad instance should
+// not handle the child's exceptions. Calling RestoreDefaultExceptionHandler
+// in the child after forking will restore the standard exception handler.
+// See http://crbug.com/20371/ for more details.
+void RestoreDefaultExceptionHandler();
+#endif
+
} // namespace base
#endif // BASE_PROCESS_UTIL_H_