Merge lp:~alan-griffiths/mir/mir_lifecycle_connection_lost into lp:mir
Status: | Merged |
---|---|
Approved by: | Alan Griffiths |
Approved revision: | no longer in the source branch. |
Merged at revision: | 1111 |
Proposed branch: | lp:~alan-griffiths/mir/mir_lifecycle_connection_lost |
Merge into: | lp:mir |
Diff against target: |
294 lines (+129/-20) 9 files modified
include/shared/mir_toolkit/common.h (+2/-1) src/client/lifecycle_control.cpp (+0/-2) src/client/mir_client_library.cpp (+5/-0) src/client/mir_connection.cpp (+14/-0) src/client/rpc/mir_socket_rpc_channel.cpp (+11/-13) src/client/rpc/mir_socket_rpc_channel.h (+1/-0) tests/acceptance-tests/CMakeLists.txt (+1/-0) tests/acceptance-tests/test_server_disconnect.cpp (+93/-0) tests/unit-tests/frontend/test_published_socket_connector.cpp (+2/-4) |
To merge this branch: | bzr merge lp:~alan-griffiths/mir/mir_lifecycle_connection_lost |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
PS Jenkins bot (community) | continuous-integration | Approve | |
Alexandros Frantzis (community) | Approve | ||
Kevin DuBois (community) | Approve | ||
Alan Griffiths | Pending | ||
Review via email: mp+189375@code.launchpad.net |
This proposal supersedes a proposal from 2013-10-03.
Commit message
client & tests: Provide a lifecycle callback when server connection is lost.
Description of the change
client & tests: Provide a lifecycle callback when server connection is lost.
The client can register a handler using mir_connection_
Typically, a client app might want to save state & exit and/or try to build a new connection.
If the client hasn't registered a callback handler, then use we a default handler that raises SIGTERM - as that leads to sensible behavior in the examples.
I've found an intermittent failure in this test - will fix once I've diagnosed it.