Merge lp:~bilalakhtar/unity-lens-applications/fix-child-process-reaping-lp-1020115 into lp:unity-lens-applications
Proposed by
Bilal Akhtar
Status: | Rejected | ||||
---|---|---|---|---|---|
Rejected by: | Michal Hruby | ||||
Proposed branch: | lp:~bilalakhtar/unity-lens-applications/fix-child-process-reaping-lp-1020115 | ||||
Merge into: | lp:unity-lens-applications | ||||
Diff against target: |
12 lines (+1/-1) 1 file modified
src/daemon.vala (+1/-1) |
||||
To merge this branch: | bzr merge lp:~bilalakhtar/unity-lens-applications/fix-child-process-reaping-lp-1020115 | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Mikkel Kamstrup Erlandsen (community) | Disapprove | ||
Review via email: mp+113128@code.launchpad.net |
Description of the change
Simple one-line fix to the reaping of the child process when a command is run from Alt+F2 or something is selected in the applications place.
Running getppid on the child process without this change returns 1. Running getppid on the child process with this branch returns the pid of the applications daemon, as expected. This fixes issues with polkit in software updater, etc (see linked bug report).
Bug report also contains a python test case.
To post a comment you must log in.
Unmerged revisions
- 287. By Bilal Akhtar
-
Fix reaping of child process when using the applications place (LP: #1020115)
From the docs of the flag you added "the child will not be automatically reaped; you must use g_child_watch_add() yourself (or call waitpid() or handle SIGCHLD yourself), or the child will become a zombie.".