Mir

Merge lp:~kdub/mir/fix-1200782 into lp:~mir-team/mir/trunk

Proposed by Kevin DuBois
Status: Merged
Approved by: Alan Griffiths
Approved revision: no longer in the source branch.
Merged at revision: 857
Proposed branch: lp:~kdub/mir/fix-1200782
Merge into: lp:~mir-team/mir/trunk
Diff against target: 14 lines (+4/-0)
1 file modified
src/client/android/android_registrar.cpp (+4/-0)
To merge this branch: bzr merge lp:~kdub/mir/fix-1200782
Reviewer Review Type Date Requested Status
Alan Griffiths Approve
PS Jenkins bot (community) continuous-integration Approve
Review via email: mp+175094@code.launchpad.net

Commit message

fixes: lp:1200782 by freeing fd's associated with buffer package

Description of the change

problem history :)

rev 803: found that client was leaking buffer fd's on android only, submitted fix for lp:1192742
rev 823: in fixing 1198022, we removed the fix for 1192742, but left the test that checks the buffer fd's are freed
https://bugs.launchpad.net/mir/+bug/1200782 was filed when that test started failing.

The platform FD's which are sent over are different than the buffer package FD's. Both platform fd and buffer fd should be closed

To post a comment you must log in.
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
Revision history for this message
Alan Griffiths (alan-griffiths) wrote :

LGTM

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'src/client/android/android_registrar.cpp'
2--- src/client/android/android_registrar.cpp 2013-07-08 03:01:50 +0000
3+++ src/client/android/android_registrar.cpp 2013-07-16 17:56:27 +0000
4@@ -37,6 +37,10 @@
5 void operator()(const native_handle_t* t)
6 {
7 module->unregisterBuffer(module.get(), t);
8+ for(auto i = 0; i < t->numFds; i++)
9+ {
10+ close(t->data[i]);
11+ }
12 ::operator delete(const_cast<native_handle_t*>(t));
13 }
14 private:

Subscribers

People subscribed via source and target branches