@@ -20,6 +20,7 @@
2020#include "ApplicationTestInterface.h"
2121
2222#include <paths.h>
23+#include <csignal>
2324
2425#include <QDir>
2526#include <QGuiApplication>
@@ -36,6 +37,12 @@ ApplicationManager *ApplicationManager::singleton()
3637{
3738 if (!the_application_manager) {
3839 the_application_manager = new ApplicationManager();
40+
41+ // Emit signal to notify Upstart that Mir is ready to receive client connections
42+ // see http://upstart.ubuntu.com/cookbook/#expect-stop
43+ if (qgetenv("UNITY_MIR_EMITS_SIGSTOP") == "1") {
44+ raise(SIGSTOP);
45+ }
3946 }
4047 return the_application_manager;
4148}