summaryrefslogtreecommitdiffstats
path: root/mojo/shell/runner/host/child_process.cc
diff options
context:
space:
mode:
Diffstat (limited to 'mojo/shell/runner/host/child_process.cc')
-rw-r--r--mojo/shell/runner/host/child_process.cc9
1 files changed, 9 insertions, 0 deletions
diff --git a/mojo/shell/runner/host/child_process.cc b/mojo/shell/runner/host/child_process.cc
index 51915d7..260dc66 100644
--- a/mojo/shell/runner/host/child_process.cc
+++ b/mojo/shell/runner/host/child_process.cc
@@ -44,6 +44,10 @@
#include "mojo/shell/runner/host/linux_sandbox.h"
#endif
+#if defined(OS_MACOSX)
+#include "mojo/shell/runner/host/mach_broker.h"
+#endif
+
namespace mojo {
namespace shell {
@@ -103,6 +107,11 @@ int ChildProcessMain() {
if (app_library)
CallLibraryEarlyInitialization(app_library);
+#if defined(OS_MACOSX)
+ // Send our task port to the parent.
+ MachBroker::SendTaskPortToParent();
+#endif
+
#if !defined(OFFICIAL_BUILD)
// Initialize stack dumping just before initializing sandbox to make
// sure symbol names in all loaded libraries will be cached.