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
=== modified file 'src/modules/Unity/Application/application_manager.cpp'
--- src/modules/Unity/Application/application_manager.cpp 2014-10-30 11:55:15 +0000
+++ src/modules/Unity/Application/application_manager.cpp 2014-12-12 12:22:20 +0000
@@ -167,6 +167,15 @@
167 connectToSessionAuthorizer(appManager, sessionAuthorizer);167 connectToSessionAuthorizer(appManager, sessionAuthorizer);
168 connectToTaskController(appManager, taskController.data());168 connectToTaskController(appManager, taskController.data());
169169
170 // Emit signal to notify Upstart that Mir is ready to receive client connections
171 // see http://upstart.ubuntu.com/cookbook/#expect-stop
172 // FIXME: should not be qtmir's job, instead should notify the user of this library
173 // that they should emit this signal, perhaps by posting an event to the
174 // QMirServerApplication event loop when it comes up
175 if (qgetenv("UNITY_MIR_EMITS_SIGSTOP") == "1") {
176 raise(SIGSTOP);
177 }
178
170 return appManager;179 return appManager;
171}180}
172181
173182
=== modified file 'src/platforms/mirserver/mirserverstatuslistener.cpp'
--- src/platforms/mirserver/mirserverstatuslistener.cpp 2014-07-01 13:38:06 +0000
+++ src/platforms/mirserver/mirserverstatuslistener.cpp 2014-12-12 12:22:20 +0000
@@ -34,12 +34,4 @@
3434
35void MirServerStatusListener::started()35void MirServerStatusListener::started()
36{36{
37 // Emit signal to notify Upstart that Mir is ready to receive client connections
38 // see http://upstart.ubuntu.com/cookbook/#expect-stop
39 // FIXME: should not be qtmir's job, instead should notify the user of this library
40 // that they should emit this signal, perhaps by posting an event to the
41 // QMirServerApplication event loop when it comes up
42 if (qgetenv("UNITY_MIR_EMITS_SIGSTOP") == "1") {
43 raise(SIGSTOP);
44 }
45}37}

Subscribers

People subscribed via source and target branches