on xenial help sign in
Expect stop in upstart job and raise in case of surfaceflinger.
commit26602ce1f5fe6f2045637fc296020fcb50b00f59 authorMichał Sawicz <michal.sawicz@canonical.com> dateTue 15 Oct 2013, 16:38 (13 years ago) parentb6b64c9
2 files changed+3
data/unity8.conf+1 main.cpp+2
data/unity8.conf+1
@@ -5,5 +5,6 @@ start on ((xsession SESSION=ubuntu-touch) or (xsession SESSION=ubuntu-touch-surf
55stop on desktop-end
66
77respawn
8+expect stop
89
910exec ${BINARY:-unity8} $ARGS
main.cpp+2
@@ -28,6 +28,7 @@
2828#include <QDebug>
2929#include <libintl.h>
3030#include <dlfcn.h>
31+#include <csignal>
3132
3233// local
3334#include "paths.h"
@@ -218,6 +219,7 @@ int main(int argc, const char *argv[])
218219
219220 return runWithClient(mirServer, startShell);
220221 } else {
222+ raise(SIGSTOP);
221223 return startShell(argc, argv, nullptr);
222224 }
223225}