Merge lp:~gerboland/qtmir/emitSigstopAtCorrectTime into lp:qtmir

Proposed by Gerry Boland
Status: Merged
Approved by: Michał Sawicz
Approved revision: 291
Merged at revision: 295
Proposed branch: lp:~gerboland/qtmir/emitSigstopAtCorrectTime
Merge into: lp:qtmir
Diff against target: 36 lines (+9/-8)
2 files modified
src/modules/Unity/Application/application_manager.cpp (+9/-0)
src/platforms/mirserver/mirserverstatuslistener.cpp (+0/-8)
To merge this branch: bzr merge lp:~gerboland/qtmir/emitSigstopAtCorrectTime
Reviewer Review Type Date Requested Status
Michał Sawicz Approve
PS Jenkins bot (community) continuous-integration Approve
Review via email: mp+244570@code.launchpad.net

Commit message

Emit SIGSTOP when AppMan fully initialized, when Mir is ready is too soon

Description of the change

Emit SIGSTOP when AppMan fully initialized, when Mir is ready is too soon

 * Are there any related MPs required for this MP to build/function as expected? Please list.
N
 * Did you perform an exploratory manual test run of your code change and any related functionality?
Y
 * If you changed the packaging (debian), did you subscribe the ubuntu-unity team to this MP?
N/A

To post a comment you must log in.
Revision history for this message
Michał Sawicz (saviq) wrote :

Will test in silo.

review: Approve (code)
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
Revision history for this message
Michał Sawicz (saviq) wrote :

Everything seems fine, was unable to reproduce the issue.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'src/modules/Unity/Application/application_manager.cpp'
2--- src/modules/Unity/Application/application_manager.cpp 2014-10-30 11:55:15 +0000
3+++ src/modules/Unity/Application/application_manager.cpp 2014-12-12 12:22:20 +0000
4@@ -167,6 +167,15 @@
5 connectToSessionAuthorizer(appManager, sessionAuthorizer);
6 connectToTaskController(appManager, taskController.data());
7
8+ // Emit signal to notify Upstart that Mir is ready to receive client connections
9+ // see http://upstart.ubuntu.com/cookbook/#expect-stop
10+ // FIXME: should not be qtmir's job, instead should notify the user of this library
11+ // that they should emit this signal, perhaps by posting an event to the
12+ // QMirServerApplication event loop when it comes up
13+ if (qgetenv("UNITY_MIR_EMITS_SIGSTOP") == "1") {
14+ raise(SIGSTOP);
15+ }
16+
17 return appManager;
18 }
19
20
21=== modified file 'src/platforms/mirserver/mirserverstatuslistener.cpp'
22--- src/platforms/mirserver/mirserverstatuslistener.cpp 2014-07-01 13:38:06 +0000
23+++ src/platforms/mirserver/mirserverstatuslistener.cpp 2014-12-12 12:22:20 +0000
24@@ -34,12 +34,4 @@
25
26 void MirServerStatusListener::started()
27 {
28- // Emit signal to notify Upstart that Mir is ready to receive client connections
29- // see http://upstart.ubuntu.com/cookbook/#expect-stop
30- // FIXME: should not be qtmir's job, instead should notify the user of this library
31- // that they should emit this signal, perhaps by posting an event to the
32- // QMirServerApplication event loop when it comes up
33- if (qgetenv("UNITY_MIR_EMITS_SIGSTOP") == "1") {
34- raise(SIGSTOP);
35- }
36 }

Subscribers

People subscribed via source and target branches