Merge lp:~afrantzis/mir/fix-1353461-prompt-session-fd-leaks into lp:mir
Proposed by
Alexandros Frantzis
Status: | Merged |
---|---|
Approved by: | Alexandros Frantzis |
Approved revision: | no longer in the source branch. |
Merged at revision: | 1843 |
Proposed branch: | lp:~afrantzis/mir/fix-1353461-prompt-session-fd-leaks |
Merge into: | lp:mir |
Diff against target: |
73 lines (+12/-7) 2 files modified
src/server/frontend/session_mediator.cpp (+2/-0) tests/acceptance-tests/test_prompt_session_client_api.cpp (+10/-7) |
To merge this branch: | bzr merge lp:~afrantzis/mir/fix-1353461-prompt-session-fd-leaks |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
PS Jenkins bot (community) | continuous-integration | Approve | |
Daniel van Vugt | Approve | ||
Alan Griffiths | Approve | ||
Review via email: mp+230755@code.launchpad.net |
Commit message
frontend,tests: Fix fd leaks in prompt session frontend code and tests
Description of the change
frontend,tests: Fix fd leaks in prompt session frontend code and tests
This MP fixes two leak sources: one in the tests (non-critical) and one in the prompt session frontend code, which is critical since it will eventually cause the server to run out of file descriptors.
To post a comment you must log in.
36 - static std::size_t const arbritary_ fd_request_ count = 3;
Personally, I'd leave this definition in the fixture (the test reader really shouldn't care what the number is - hence the "arbritary" name).