Merge lp:~ted/ubuntu-app-launch/lp1495871-unref-context into lp:ubuntu-app-launch/15.10
Status: | Superseded |
---|---|
Proposed branch: | lp:~ted/ubuntu-app-launch/lp1495871-unref-context |
Merge into: | lp:ubuntu-app-launch/15.10 |
Prerequisite: | lp:~ted/ubuntu-app-launch/pids-tools |
Diff against target: |
57 lines (+12/-3) 2 files modified
helpers-shared.c (+11/-2) libubuntu-app-launch/ubuntu-app-launch.h (+1/-1) |
To merge this branch: | bzr merge lp:~ted/ubuntu-app-launch/lp1495871-unref-context |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
PS Jenkins bot (community) | continuous-integration | Approve | |
Indicator Applet Developers | Pending | ||
Review via email: mp+271322@code.launchpad.net |
This proposal supersedes a proposal from 2015-09-16.
This proposal has been superseded by a proposal from 2015-12-02.
Commit message
Ensure all pending events on the context are complete before unref'ing it.
Description of the change
So while we create a context to ensure that we can capture all the events to the CGManager connection it seems that some of those events can get stuck on the context, and they need to get processed to complete. Otherwise they hold onto references of things, and that actually results in a g_spawn getting left around because it never gets free'd. (actually of the context itself, which is a bit confusing, but eh, refcounting is fun)
Also brought in the pid tools branch because it made testing this much, much easier. You can use the ubuntu-
valgrind --track-fds=yes ./ubuntu-
Which on trunk will have 6 FDs left over, but with this branch only 5. (which come from globals that we don't control)
Unmerged revisions
- 215. By Ted Gould
-
Merge FTBFS
- 214. By Ted Gould
-
Fix GDocs syntax for warning
- 213. By Ted Gould
-
Make sure get and set use the same value
- 212. By Ted Gould
-
Ensure that we process all the events on the context before unref'ing it. There may be references in the events.
- 211. By Ted Gould
-
Grabbing the pid tools branch
- 210. By Ted Gould
-
Easier to read an a cast that is needed
- 209. By Ted Gould
-
Plug leaking context
PASSED: Continuous integration, rev:214 jenkins. qa.ubuntu. com/job/ ubuntu- app-launch- ci/18/ jenkins. qa.ubuntu. com/job/ ubuntu- app-launch- wily-amd64- ci/18 jenkins. qa.ubuntu. com/job/ ubuntu- app-launch- wily-armhf- ci/18 jenkins. qa.ubuntu. com/job/ ubuntu- app-launch- wily-i386- ci/18
http://
Executed test runs:
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
Click here to trigger a rebuild: s-jenkins. ubuntu- ci:8080/ job/ubuntu- app-launch- ci/18/rebuild
http://