Applications can escape from lifecycle

Bug #1358753 reported by Ted Gould
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ubuntu Application Launcher
Fix Released
Critical
Ted Gould

Bug Description

Currently in the releases applications can easily escape for the lifecycle by creating a new process group. To avoid this we need to use cgroups in the application jobs. Currently that is blocked on:

https://bugs.launchpad.net/ubuntu-app-launch/+bug/1357252

After that lands then we can land a branch to fix this bug. Bug is mostly for tracking to ensure we don't miss this going into RTM.

Tags: rtm14

Related branches

Ted Gould (ted)
tags: added: rtm14
Changed in ubuntu-app-launch:
status: New → In Progress
importance: Undecided → Critical
assignee: nobody → Ted Gould (ted)
Revision history for this message
Ted Gould (ted) wrote :

I was asked, so I thought I'd put the comment here as well. Here's how you avoid the application lifecycle:

int main (int argc, char * argv[]) {
  pid_d pid = 0;
  if ((pid = fork()) != 0) {
    waitpid(pid);
    return 0;
  |
  setpgid(0,0);

  /* You're free!!!!! */
}

The parent will get stopped and started based on application lifecycle states but anything in the rest of the main function will be unaffected.

Revision history for this message
Charles Kerr (charlesk) wrote :

Apparently this isn't so critical?

This branch has been floating, approved, for two months... might be good to land it. :P

Charles Kerr (charlesk)
Changed in ubuntu-app-launch:
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.